[erlang-questions] Re: Concept of Side-effect

Jayson Vantuyl kagato@REDACTED
Fri Sep 18 10:38:14 CEST 2009

> Not so. The inner fun() executes within a transactional context  
> (that of mnesia) and only uses functions relative to that context,  
> which means the context manager can handle errors & retries  
> gracefully.
Okay, the inner fun() has intended side-effects.

The point was, if the inner function had any OTHER side effects, it  
couldn't be retried.

So, -1 for actually having intended but subtle side effects, but +1000  
for showing a real case of when and why they're important--which was  
the poster's question.

Jayson Vantuyl

More information about the erlang-questions mailing list