2 ms·
This is why I'm so sad that Elixir doesn't have a return statement.
by skrebbel 9y ago
This is why I'm so sad that Elixir doesn't have a return statement.
- OvermindDL1 9y agoBut Elixir 'does' have early returns, they are known as `Guards` as a language construct.
- skrebbel 9y agoYeah 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.