[erlang-questions] erlang sucks

Richard Carlsson richardc@REDACTED
Mon Mar 17 14:19:34 CET 2008


attila.rajmund.nohl@REDACTED wrote:
> On the contrary, I often see code like this:
> 
> HR1=f(HugeRecord),
> ...
> g(HR1).
> 
> Then someone adds a line to modify the HugeRecord and forgets to update
> the call to 'g':
> 
> HR1=f(HugeRecord),
> HR2=f2(HR1),
> ...
> g(HR1).
> 
> Now we have a stupid bug.

Only if you don't compile with warn_unused_vars. This tends to catch
practically all errors of that category.

     /Richard





More information about the erlang-questions mailing list