[erlang-questions] case expression scope

Loïc Hoguin essen@REDACTED
Wed Mar 5 20:22:59 CET 2014


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*.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list