Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
haukur
· 14y ago · 0 comments
I've always found code without spaces around these symbols to be very undreadable.
Comments
[–]
pilot_pirx
14y ago
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.
[–]
xyzzyb
14y ago
Whitespace is already extremely significant in programming. "foo[1]" vs "foo [1]" for example.
[–]
pilot_pirx
14y ago
Depends on language, in Ruby those statements would be identical. But anyway, that's no reason to make things even worse.
[–]
mbrubeck
14y ago
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...
[–]
megablast
14y ago
And I have found the opposite. Horses for courses.