Re: [svn:perl6-synopsis] r9216 - doc/trunk/design/syn

2006-05-13 Thread Larry Wall
On Sat, May 13, 2006 at 10:52:00AM +0300, Markus Laire wrote:
: On 5/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
: > Argumentless C<**> in a multi-dimensional subscript indicates 0 or
: >-more dimensions of C<*> where the number of dimension isn't necessarily
: >-known: C<@foo[1;**;5]>.  It has a value of C, or something
: >-like that.  The argumentless C<*> and C<**> forms are probably only
: >-useful in "dimensional" list contexts.
: 
: Is there any new format to do the equivalent of C<@foo[1;**;5]>, or is
: that impossible nowadays?

Considering we still have * for Whatever, I don't see any problem with
letting ** still mean MultiDim of Whatever.  In fact, we've made it easier
now.  I was deleting it from S03 only because it's not an argumentless operator
anymore, but a lowly term.  Probably about time to revisit S09 again...

Larry


Re: [svn:perl6-synopsis] r9216 - doc/trunk/design/syn

2006-05-13 Thread Markus Laire

On 5/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 Argumentless C<**> in a multi-dimensional subscript indicates 0 or
-more dimensions of C<*> where the number of dimension isn't necessarily
-known: C<@foo[1;**;5]>.  It has a value of C, or something
-like that.  The argumentless C<*> and C<**> forms are probably only
-useful in "dimensional" list contexts.


Is there any new format to do the equivalent of C<@foo[1;**;5]>, or is
that impossible nowadays?

--
Markus Laire


Re: [svn:perl6-synopsis] r9216 - doc/trunk/design/syn

2006-05-12 Thread Daniel Hulme
>  (string) context.  You can force list context on the expression using
> -either the C<*> or C operator if necessary.
> +either the C operator if necessary.
English not being executable line noise, you can't use "either" to force
a scalar into list context.

-- 
"Twelve? Who needs twelve? Couldn't we make do with six?"  -- Lew Grade,
   trying to cut production costs on 'Jesus of Nazareth'
  "The illegal we do immediately,
the unconstitutional takes a little longer."  Henry Kissinger, June 1972


pgpG2UJJQyQfV.pgp
Description: PGP signature