4 ms·
> For example, Elm, a language largely inspired by Haskell, doesn't have partial functions. I may be wrong, but I don't think this is technically true. I don't
by natec425 10y ago
> For example, Elm, a language largely inspired by Haskell, doesn't have partial functions.
I may be wrong, but I don't think this is technically true. I don't think Elm has only total functions, but it does avoid a lot of common, error-prone partial functions (e.g. accessing elements from a collection).
- pka 10y agoI am not following Elm closely and may be wrong, but I'd be surprised. The creator (Evan) is really picky about having unsafe features in the language. It's even impossible to upload a package to the official repository containing JavaScript code without prior approval, because the native code may crash!