[erlang-questions] case expression scope

Thomas Lindgren <>
Wed Mar 5 21:31:51 CET 2014

Thanks, any examples either of you can share where they are particularly handy?


On Wednesday, March 5, 2014 8:35 PM, Jesper Louis Andersen <> wrote:

>On 05 Mar 2014, at 20:22, Loïc Hoguin <> wrote:
>> On 03/05/2014 06:13 PM, Thomas Lindgren wrote:
>>> The way I see it, the feature of implicit variable matching is more
>>> trouble than it's worth. Warnings about such matches would catch this
>>> kind of problems.
>>> For myself, it's seldom used in practice, and mostly a source of hidden
>>> bugs and unobvious code. Rewriting into explicit comparisons is normally
>>> straightforward and clearer, so having it doesn't buy me a lot. But
>>> maybe I'm being unreasonable. Anyone use bound variables in patterns a
>>> lot by intent?
>> *Yes*.
>Me too!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140305/f30f3422/attachment.html>

More information about the erlang-questions mailing list