in reply to Re: Builtin functions defaulting to $_
in thread Builtin functions defaulting to $_
Of course, pattern matching and topicalizers still implicitly deal with $_, but you no longer have to memorize a long list of functions, nor worry about the difference betweenfor 1..10 { .say }
since in Perl 6 that is unambiguouslyrand > 0.5 # means rand($_) > 0.5 rand < 0.5 # parse error looking for fileglob
You don't have to memorize which symbols are true globals either. As for Perl 5's magical use of $a and $b, the less said the better... :-).rand < 0.5 # always means rand($_) < 0.5
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Builtin functions defaulting to $_
by shmem (Chancellor) on Mar 24, 2007 at 13:53 UTC | |
by TimToady (Parson) on Mar 25, 2007 at 01:41 UTC |