[erlang-questions] erlang sucks

Christian S chsu79@REDACTED
Mon Mar 17 14:31:08 CET 2008

>  HR1=f(HugeRecord),
>  HR2=f2(HR1),
>  ...
>  g(HR1).

But HR2 going unused will emit a compiler warning?  If your ellipsis
of code uses HR2 then some simple unit tests should detect your
mistake before the code is committed.

I appreciate that the resulting code is easier to reason about when
you have immutable values and single assignment variables.

The mental exercise of executing the code in your head becomes simpler
when there is only one value throughout the variable's scope.

More information about the erlang-questions mailing list