[erlang-questions] Idiom for multiple case matches

Edwin Fine erlang-questions_efine@REDACTED
Fri Nov 7 21:23:25 CET 2008


Thanks for all your answers. They were most illuminating, especially when I
realized that I had once upon a time read those release notes and completely
forgotten about this optimization (mea culpa).

Edwin

Original question: Isn't there also more garbage (as in GC) created by Mats'
solution? Doesn't the list "aeiouy" get created and destroyed every time, or
does the compiler "know" it is constant and make one constant copy of it
that is not GC'ed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081107/96eeccf9/attachment.htm>


More information about the erlang-questions mailing list