News for hackers. Stuff that matters.
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.
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.
Re:Underscores are stupid by xyzzyb on Tuesday May 15, 2012 @11:37AM (#3977051)
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.
Re:Underscores are stupid by mbrubeck on Tuesday May 15, 2012 @11:55AM (#3977155)
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...
Re:Underscores are stupid by megablast on Tuesday May 15, 2012 @12:04PM (#3977201)
And I have found the opposite. Horses for courses.