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

[perl #116020] toggle operator missing reset: proposal

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
August 29, 2013 07:15
Subject:
[perl #116020] toggle operator missing reset: proposal
Message ID:
rt-3.6.HEAD-1873-1377760533-1127.116020-15-0@perl.org
On Wed Aug 28 13:20:25 2013, zefram@fysh.org 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
https://rt.perl.org:443/rt3/Ticket/Display.html?id=116020

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