Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Syntactic noise matters. You don't notice how much it costs until you're used to a lots-of-small-functions style in a language where that's possible.

I prefer consistency in the opposite direction, like I have in Scala: all constructs can be written as expressions. Function body? Expression. Try/catch body? Expression. Loop body? Expression. If you want to put a bunch of statements in rather than an expression, then you put them in braces. (But most of the time there's a better way to express what you wanted).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: