HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by skrebbel | Hacker News Reader
Full thread
skrebbel
·
This is why I'm so sad that Elixir doesn't have a return statement.
View on HN
OvermindDL1
·
But Elixir 'does' have early returns, they are known as `Guards` as a language construct.
skrebbel
·
Yeah but that's only half the argument, right? Early returns make control flow a lot easier to read in general, not only when checking preconditions.
Reply on news.ycombinator.com