develooper Front page | perl.perl6.language | Postings from April 2005

Re: Closure/block/sub multiplier /// Win32 module for Perl6

Thread Previous | Thread Next
From:
Larry Wall
Date:
April 20, 2005 12:00
Subject:
Re: Closure/block/sub multiplier /// Win32 module for Perl6
Message ID:
20050420190022.GD766@wall.org
On Wed, Apr 20, 2005 at 08:39:43PM +0200, Juerd wrote:
: The same thing goes for all those places where a variable is expected
: that begins with $, like foreach. You can't easily use an lvalue sub.
: The workaround is like your goto workaround:
: 
:     for ${\thatsub()} (1..10) { ... }

Yes, and that's one reason we intentionally broke most of those forced
sigil syntaxes for Perl 6.  You can say push($foo,$bar) in Perl 6 too.

: Although admittedly, I only encountered this when playing with a
: non-readonly undef ;) (This is something I can recommend to anyone:
: redefining true, false and undef leads to very spectacular code, where
: anything's possible, and defined(undef) can be a true that stringifies
: as "false".)

Perl 6 culture might feebly try to discourage the redefinition of truth.

Larry

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