4 ms·
> A hello world can literally just be a single line Yes a bazooka can kill an ant. Does it make it suited for the job? > things like immutability, pattern mat
by linkdd 4y ago
> A hello world can literally just be a single line
Yes a bazooka can kill an ant. Does it make it suited for the job?
> things like immutability, pattern matching, anonymous (aka lambda) functions, etc
Immutability is easier to understand than all the problems that arise with mutability. Also with Elixir, unlike Erlang, you can rebind a variable, which does not break mutability and yet gives you some liberty with what you're doing.
Pattern matching might be the most natural thing in the world:
| I have this on the left, does it look like this on the right?
vs
| Bunch of if/else/switch/... that basically answer the same question
Since I tasted pattern matching in Erlang/Elixir, I just feel limited whenever I go back to another language.
But while those features might be nice and all, once you start searching about Elixir, the literature/forums/chats will be all about OTP, best practices, gen servers, distributed systems, and all of that. Because that's what 99% of the people using Elixir are doing.
Just like starting with TypeScript, one might expect to see a lot of Javascript thrown in the mix.
This will only confuse the newbie because they will not know what they're are reading.