Re:Elixir and Phoenix after two years
by dnautics on Monday April 05, 2021 @08:03PM
(#26706296)
one difference is that you can really afford to be lazy with elixir. If your pattern match fails, one option is to let it throw a MatchError. Especially if the failure is rare, you just let the process die and your supervisors will restart the process into a sane state, and hopefully the next time you hit the code path it will be ok (for example: you are calling out to a 3rd party web service and they have a brief service outage, or some backhoe went over a network link and killed your packets).
[ Parent
| on HN ]
There are no comments on this comment yet.