On 12/20/2013 04:52 AM, Richard Hainsworth wrote:
OK x not xx.
The doubling of operators is confusing.
OTOH having a single operator which two different meanings is also
confusing (and very un-perlish).
Cheers,
Moritz
On Dec 21, 2013, at 12:00 AM, Moritz Lenz mor...@faui2k3.org wrote:
On 12/20/2013 04:52 AM, Richard Hainsworth wrote:
OK x not xx.
The doubling of operators is confusing.
OTOH having a single operator which two different meanings is also confusing
(and very un-perlish).
Sometimes,
My mnemonic is x (one thing) is for scalars, xx (many things) is for
lists. Using that, there's seldom any confusion.
The reason Perl 6 makes the distinction is that (unlike Perl 5) it
*has to*. Perl 5 does context-based dispatch, whereas Perl 6 does
argument-based dispatch. We greatly prefer the
Initially I though the following was a bug, but now I'm not sure.
I got these results
perl6 -v
This is perl6 version 2013.09 built on parrot 5.5.0 revision 0
$ perl6
say '0' xx 4
0 0 0 0
print '0' xx 4
print 's' ~ ('0' xx 4)
s0 0 0 0
I'm not sure why the elements of the expansion are
On 12/19/2013 3:47, Richard Hainsworth wrote:
Initially I though the following was a bug, but now I'm not sure.
I got these results
perl6 -v
This is perl6 version 2013.09 built on parrot 5.5.0 revision 0
$ perl6
say '0' xx 4
0 0 0 0
Are you sure you didn't want the x (string repetition)
OK x not xx.
The doubling of operators is confusing.
Richard
On 12/19/2013 10:01 PM, Jonathan Worthington wrote:
On 12/19/2013 3:47, Richard Hainsworth wrote:
Initially I though the following was a bug, but now I'm not sure.
I got these results
perl6 -v
This is perl6 version 2013.09 built