[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] awww, no fun :(



On Thu, Apr 12, 2001 at 09:32:15PM +0100, Michael G Schwern wrote:
> On Thu, Apr 12, 2001 at 09:48:18PM +0200, Abigail wrote:
> > It's documented to work this way in perlsyn.
> > 
> > (Did noone here bother to read the documentation?)
> 
> I looked, but perlsyn is big.  I looked harder and found it.
> 
>        The LABEL [on a while loop] identifies the loop for the 
>        loop control statements "next", "last", and "redo".  If 
>        the LABEL is omitted, the loop control statement refers 
>        to the innermost enclosing loop.  This may include 
>        dynamically looking back your call-stack at run time to 
>        find the LABEL.  Such desperate behavior triggers a 
>        warning if you use the "use warnings" praga or the 
>        -w flag.
> 
> The docs imply its the wrong behavior (any feature described as
> "desperate" is probably dubious) but kept around for historical
> reasons.  This feature should probably be deprecated and the warning
> on sub foo { last } be made more severe.


Deprecating to me means, there's an advantage to remove it from the
language. I fail to see what the advantage would be. Do you have a better
of what 'sub foo {last}' could do? Would it make the implementation
faster?

It sounds too much like "I don't like it - let's deprecate it" to me.
Well, we have perl6-language for that (except that's more "I don't like
it - let's remove it").



Abigail

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe