Blair Sutton writes:
> David Green wrote:
>
> > In some ways, I like not having a [0] index at all: programmers may
> > be used to counting from zero, but normal humans start with first,
> > second, third, ... third last, second last,...
>
> My feelings are Perl 6 should stick to 0 being the ind
David Green wrote:
On 2/5/07, David Green wrote:
Then we wouldn't need * to count backwards, although it's still
useful to allow us to count past the end of an array. There are all
sorts of variations on this scheme, such as whether * is the last
element or the one after that, etc., or whether
HaloO,
David Green wrote:
Also, this would solve a problem I've been wondering about with "funny"
shapes being lexically scoped. [..]
However, what if you pass the funny array along with a (funny) index?
E.g. our @flavours (1..32);
my $favourite = get_fave(@flavours); #returns index of s