1. RE: Last Element Notation
>
> Unless someone has a better idea, I think I'll go ahead
> with this idea of $ meaning "the index of the last element".
> e.g.
> s[1..$]
> s[1..$-1]
> s[$-2]
> etc.
>
> I've wanted to do something like this for quite a while,
> but I always had the feeling there might be a better way.
>
Thank God! (and Robert) Great news!
It is not hyperbole to say that this simple bit of sugar will cut my
development time by hours for most projects...
2. RE: Last Element Notation
Andy Serpa wrote:
>
> Thank God! (and Robert) Great news!
>
> It is not hyperbole to say that this simple bit of sugar will cut my
> development time by hours for most projects...
>
I agree... History will remembered this day! Thank you Robert.
Marc
3. RE: Last Element Notation
- Posted by rforno at tutopia.com
Sep 20, 2003
Strange. You know, "fin" is the Spanish word for "end".
Maybe these "old films" originated in Argentina?
Regards.
----- Original Message -----
From: Juergen Luethje <j.lue at gmx.de>
Subject: Re: Last Element Notation
>
>
> David wrote:
>
> > Robert Craig wrote:
> >
> >> Unless someone has a better idea, I think I'll go ahead
> >> with this idea of $ meaning "the index of the last element".
> >> e.g.
> >> s[1..$]
> >> s[1..$-1]
> >> s[$-2]
> >> etc.
> >
> > I agree that this is probably the best notation. There are shorter
notations
> > (for example, see Python), but they lack the clarity of the '$'
notation.
> >
> > The only real complaint is that it's another step toward the
Perlification of
> > the language. The 'end' token would be more clear:
> >
> > s[1..end]
> > s[1..end-1]
> > s[end-2]
> >
> > but I have difficulty convincing myself that this is much better,
especially
> > given that 'end' already has a distinct meaning in Euphoria. And the '$'
is
> > shorter and easy to see.
>
> How about using this, in order to prevent Perlification:
> s[1..fin]
> s[1..fin-1]
> s[fin-2]
>
> AFAIR 'fin' often appeared at the end of old movies.
>
> > Besides, If it were *true* Perlification, you'd have selected the '^'
token.
> >
> > -- David Cuny
>
> Regards,
> Juergen
>
> --
> /"\ ASCII ribbon campain | |\ _,,,---,,_
> \ / against HTML in | /,`.-'`' -. ;-;;,_
> X e-mail and news, | |,4- ) )-,_..;\ ( `'-'
> / \ and unneeded MIME | '---''(_/--' `-'\_)
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>