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

[perl #116020] toggle operator missing reset: proposal

Thread Previous | Thread Next
Father Chrysostomos via RT
August 29, 2013 07:15
[perl #116020] toggle operator missing reset: proposal
Message ID:
On Wed Aug 28 13:20:25 2013, wrote:
> 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.

I think I agree here.  Shall I close it?  What do others think?


Father Chrysostomos

via perlbug:  queue: perl5 status: open

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