3 ms·
You can say the same thing another way. If your code is littered with V2 = V1 + 1 "idioms", then you are coding in a way not well supported by Erlang. Or, reb
by artsrc 17y ago
You can say the same thing another way. If your code is littered with V2 = V1 + 1 "idioms", then you are coding in a way not well supported by Erlang.
Or, rebinding variables is generally not the clearest way to express the intent of your calculation. Abstractions like fold are more pure descriptions of the desired calculation.
I do agree with the consensus that the clojure recur, expresses something about intent that is missing from Erlang.
I enjoy functional depictions of algorithms, but there are many programmers who are currently more comfortable with imperative code.