[erlang-questions] case expression scope
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 <jesper.louis.andersen@REDACTED> wrote:
>On 05 Mar 2014, at 20:22, Loïc Hoguin <essen@REDACTED> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions