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

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

Thread Previous | Thread Next
August 28, 2013 20:19
Re: [perl #116020] toggle operator missing reset: proposal
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About