Try vs Case: The last battle
In this article we’ll try to battle different Elixir control structures in order to understand their efficiency and applicability in our projects.
- You can use
else- instead of
caseliterally (only literally!);
- Never use
case- only instead of
tryif you need it - for
- Forget about
catchin your code - they are really slow;
Do you want to know, what literally means? Welcome under cut!