[erlang-questions] At what point am I "playing compiler"

Roessner, Silvester <>
Mon May 18 08:16:21 CEST 2009


Hi Dennis,

expressive() will always be 2 times slower than efficient
even if the compiler could reason about lists:foldl:
You use lists:last(List) instead of First = hd(List).

I personally find efficient() also more expressive than expressive().
Perhaps you can use a record -record(summary, {min, man, total}) to
increase the expressiveness.

Silvester
This message is intended for a particular addressee only and
may contain business or company secrets. If you have received
this email in error, please contact the sender and delete the
message immediately. Any use of this email, including saving,
publishing, copying, replication or forwarding of the message
or the contents is not permitted.




More information about the erlang-questions mailing list