Y
Hacker News
new
|
ask
|
show
|
jobs
by
pilot_pirx
5143 days 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.
1 comments
xyzzyb
5143 days ago
Whitespace is already extremely significant in programming. "foo[1]" vs "foo [1]" for example.
link
pilot_pirx
5143 days ago
Depends on language, in Ruby those statements would be identical. But anyway, that's no reason to make things even worse.
link
mbrubeck
5143 days 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...
link