Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

'Go' is 100% longer than C.


C is also, and was in 1970, a terrible name for a language.

In fairness to K&R though, they weren't able to predict that search engines would exist and single-letter names would be a pain in the ass. It was still a terrible name though.


Were they trying to save memory?


It's also 33% quicker to type than C++


probably only about 20% since you need only two keys for both :P


A more careful analysis: "C++" requires the use of the shift key for all characters, and extension below the home row and to the top row. On the other hand, the characters of "Go" are on the home row and the row above. The shift key is only required for the 1st character.

So the actions for typing "C++" are going to be [shift] [C] [+] [+]. For typing "Go" [shift] [G] [o]. The "+" keys are repeated, which makes the 2nd action faster. However, the spread between C and + is much wider than between G and O.

I would guess that it's probably 33% more.


You need three keys or two keys and a long hand movement to type C++, but you only need two keys for 'go' - and the keys for go are alternate hands and strong fingers, but even the nearest + symbol requires a weak finger or a contortion.

Also, go is typed as a typical word more often than ++ is, so it's more habitual and familiar and automatic.

I suggest it's much faster.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: