[erlang-questions] Let it crash + side effects
Attila Rajmund Nohl
Thu Mar 7 12:04:12 CET 2013
2013/3/7 Tyron Zerafa <tyron.zerafa@REDACTED>:
> Erlang is impure, functions do have side effects. So how does exactly the
> let it crash philosophy fit in Erlang?
> As far as I know Erlang does not employ any kind of atomic actions or roll
> back mechanisms.
Well, Erlang has mnesia transactions.
> What is the best course of action to take for a failing
> function which has side effects?
I don't think you can have a general answer for this question - it
depends on very much what the side effect is and what the failing
More information about the erlang-questions