3 ms·
Elixir. Lets you do stateful declarative stuff (talking to databases, communication, disk) with no fuss. No mutability, single line lambdas, fast function cal
by throwawaymaths 4y ago
Elixir. Lets you do stateful declarative stuff (talking to databases, communication, disk) with no fuss. No mutability, single line lambdas, fast function calls.
Plus, rediculously easy concurrency, customizable failure domains, first class concurrent testing...
- eru 4y agoMight as well use Erlang?
- bongobingo1 4y agoNo? The syntax and standard library is vastly different in terms of ergonomics. You could argue whether its better but it's undeniably more familiar to non-erlangers. (Alternatively, you already are using Erlang anyway.)
- pjmlp 4y agoOr former Prolog users.
- eru 4y agoWell, Erlang has slightly nicer syntax, IMHO. I would have assumed you can use the same library functions? (Sorry, I mostly only used Erlang and only briefly looked into Elixir and didn't find anything useful compared to just plain Erlang.)
- throwawaymaths 4y ago"didnt find anything useful" Better documentation, better package management, testing framework, consistent function calls, opinionated standards on how to name things (get vs fetch, ! suffix for crashables, is vs ?, size vs length), Protocols, not having lexical macros, not needing make, Testing Framework, compile environments (test, dev, prod), $callers, custom guards, Task, Registry, DynamicSupervisor, IO.inspect (now dbg), mix tasks, TESTING FRAMEWORK...