[erlang-questions] Idiom for multiple case matches
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).
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...
More information about the erlang-questions