3 ms·
Exactly.
by bslatkin 4y ago
Exactly.
- redbar0n 4y ago> My conclusion is that there are major, well-justified reasons for why people strongly dislike functional languages. What are those reasons, in your view?
- darkmarmot 4y agoSo what advantages to comprehension or usability would you like to offer over Elixir? (as it doesn't really focus on type/category theory like most other FP languages)
- bslatkin 4y agoI'm not an Elixir expert at all, but one important feature I believe is missing: explicit returns.
- weatherlight 4y agoum, what? Pretty common in FP languages to have implicit returns. A function HAS to return something. Ideally, a function is just a mapping between one value and another value. Wouldn't make much sense to have explicit returns. For everything else there are guards, or just a simple if/else block. If everything is an expression (And if you are making an FP lang, almost everything should be.), the last expression will always be returned.