News for hackers. Stuff that matters.
Re:Gosu – A pragmatic language for the JVM by tredontho on Thursday July 24, 2014 @10:22AM (#8079684)
We use a bit of a dated version of Gosu where I work (something I never thought I'd get to claim on HN...), but I believe that curly braces are perfectly fine to use, and actually required if you have a multi-statement block (essentially starting to look like anonymous functions in Javascript).
Re:Gosu – A pragmatic language for the JVM by lboasso on Thursday July 24, 2014 @12:17PM (#8080425)
Exactly if you want to return just an expression you can avoid them, otherwise if you use statements in the body of the lambda you need curly braces.
Re:Gosu – A pragmatic language for the JVM by perlgeek on Friday July 25, 2014 @03:59AM (#8084180)
OK, thank you both for the explanation. That does sound sane :-).