News for hackers. Stuff that matters.
Re:The Ruby Style Guide by intsunny on Friday June 14, 2019 @04:45PM (#20186539)
I'll never understand Ruby's obsession with implicit return.

When reading code, my eye will immediately notice the `return` keyword and will have less to think about in terms of code execution.

The `return` keyword makes for great readability.

Re:The Ruby Style Guide by matthewmacleod on Friday June 14, 2019 @05:21PM (#20186761)
I much prefer this, though I accept its not without problems in some cases. I find that say Javascript in comparison has a lot of syntactic noise; it's all annoyingly boiler-plate.

Maybe JS's implicit-return-in-arrow-functions is a better compromise.

Re:The Ruby Style Guide by h1d on Friday June 14, 2019 @11:03PM (#20188181)
I feel JS has few syntactic noises but which part are you referring to?