2 ms·
> I switched to Elixir and Phoenix this year, and Elixir is a joy to write in. It makes me so happy to write less business logic by leveraging their pattern mat
by dragonwriter 4y ago
> I switched to Elixir and Phoenix this year, and Elixir is a joy to write in. It makes me so happy to write less business logic by leveraging their pattern matching.
Pattern matching does streamline a lot of logic, which is a big reason Ruby added it in version 2.7, three years ago. But, while, there are reasons I can see that one might prefer Elixir/Phoenix today, “you can write less logic because pattern matching is available in Elixir” isn’t particularly one of them.
- dmak 4y agoIt's not the same as Elixir at all. Elixir takes it further and allows method overloading, so you can pattern match methods with the correct arguments. I would suggest giving Elixir a try if you haven't yet!