[erlang-questions] case expression scope
Jesper Louis Andersen
Wed Mar 5 20:35:06 CET 2014
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?
More information about the erlang-questions