News for hackers. Stuff that matters.
Re:Statically Typed Languages Encourage Bad Code by gazetteer on Wednesday October 20, 2010 @05:38AM (#1810567)
I take it you find the one-liner more aesthetically appealing? I'm not arguing, just taking a survey. I'm deeply interested in what constitutes "good" code.
Re:Statically Typed Languages Encourage Bad Code by spooneybarger on Wednesday October 20, 2010 @08:01AM (#1810811)
I dont prefer the one line. I find the argument that the multiple line version becomes bad code when you add type info to it ludicrous.
Re:Statically Typed Languages Encourage Bad Code by gazetteer on Wednesday October 20, 2010 @08:21AM (#1810856)
It seems I have communicated poorly. The point is not that the type info makes the code bad code, but that one-liners are bad code and that one-liners are encouraged by requiring type declarations.