Re: n-dim matrices
[email protected] (Christian Soeller) Fri, 01 Sep 2000 11:09:17 +1200
| Newsgroups | perl.perl6.language.data |
|---|---|
| Organization | University of Auckland |
| Message-ID | <[email protected]> |
Jeremy Howard wrote:
> I'd rather see the ';' be required, but the '(0..)' not be required, so you
This is not good! There are a lot of routines where it is very useful to
specify a slice as
@a[0]
that should work regardless how many dimensions @a really has. There are
many instances in PDL routines right now where the equivalent is
something like
$a->slice('(0)');
It is an extremly(!) useful feature. Buddha's syntax suggestions to
generalize this seem nice.
> already talked about, but with ambiguities and implications sorted out).
> Under one of these RFCs @a[0:1] will have a useful meaning, so I don't want
> it to be equivalent to @a[0:1;;].
Then your new meaning of @a[0:1] is not a good idea IMHO.
Christian