Re:Underscores are stupid
by haukur on Tuesday May 15, 2012 @11:18AM
(#3976941)
I've always found code without spaces around these symbols to be very undreadable.
[ Parent
| on HN ]
Re:Underscores are stupid
by pilot_pirx on Tuesday May 15, 2012 @11:26AM
(#3976976)
Yes, but in this case it's not about readability, but about extremely significant whitespace. Forgetting a space and your code has a totally different meaning.
Whitespace is already extremely significant in programming. "foo[1]" vs "foo [1]" for example.
Re:Underscores are stupid
by pilot_pirx on Tuesday May 15, 2012 @11:48AM
(#3977119)
Depends on language, in Ruby those statements would be identical. But anyway, that's no reason to make things even worse.
In Ruby those statements are the same when foo is bound to an array, but they are different when foo is bound to a function...