On Tue, Jan 3, 2012 at 5:47 PM, Zefram <zefram@fysh.org> wrote:
> Ricardo Signes wrote:
>>How hard is a warning here?
>
> What is the proposed scope of a warning? What's been misunderstood
> here isn't "each", it's "while". You could get an essentially identical
> effect from "... while pop @{[1,2,3]}" or from any other builtin or sub
> that side-effects an array or hash argument.
>
> -zefram
the warning could say "mutator used in boolean context" for instance,
and it might go off whenever a returned value gets downgraded to
true/false. Discouraging that could go a long way towards eventually
making all that "0e0" and "0but_true" a memory.
Thread Previous
|
Thread Next