Re:Introducing Verve: minimalistic, static, functional language
by nerdponx on Friday July 08, 2016 @08:07PM
(#12059423)
Why no explicit returns? I'm used to them from R, but I thought that was considered a quirk, not a feature.
[ Parent
| on HN ]
Re:Introducing Verve: minimalistic, static, functional language
by tadeuzagallo on Friday July 08, 2016 @08:10PM
(#12059430)
It makes it easier to reason about a functions result, both when reading the code and when type checking.
Re:Introducing Verve: minimalistic, static, functional language
by okonomiyaki3000 on Saturday July 09, 2016 @04:09AM
(#12060637)
Yeah, it strikes me as a bad idea. I mean, auto-returning the last statement is one thing but not allowing explicit returns means you can't use guard clauses.