develooper Front page | perl.perl5.porters | Postings from August 2013

Re: [perl #116020] toggle operator missing reset: proposal

Thread Previous | Thread Next
From:
Zefram
Date:
August 28, 2013 20:19
Subject:
Re: [perl #116020] toggle operator missing reset: proposal
Message ID:
20130828201946.GM31643@fysh.org
via RT wrote:
>My proposal:
>  Since we can label any statement (now), why not have the reset operator take a label argument?

I think the toggle operator is a wart that we should lean towards
removing, not something to encourage wider use of.  The context-dependent
behaviour is particularly nasty to handle internally, compared to other
context-dependent operators.

If you like the toggle behaviour, I suggest that you should implement
a cleaner version of it (certainly including explicit operations on
named toggles) on CPAN.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About