Andrei Alexandrescu, el 14 de febrero a las 20:24 me escribiste:
> retard wrote:
> >Sun, 14 Feb 2010 11:18:02 -0600, Andrei Alexandrescu wrote:
> >
> >>Leandro Lucarella wrote:
> >>>Michel Fortin, el 14 de febrero a las 07:48 me escribiste:
> >>>>On 2010-02-14 05:12:41 -0500, Jacob Carlborg <d...@me.com> said:
> >>>>
> >>>>>It iterates backwards, all the way back to the 50s. I think "reverse"
> >>>>>is a much better word.
> >>>>Agree.
> >>>>
> >>>>My dictionary says: "retro": imitative of a style, fashion, or design
> >>>>from the recent past.
> >>>>
> >>>>It's an amusing name in the way Andrei likes it, but the meaning isn't
> >>>>very clear. "reverse" would be a better name.
> >>>This is a pattern in Andrei, which I think it really hurts the language
> >>>(the names are very clever and funny, but that shouldn't be the point
> >>>of a name, a name should be clear).
> >>At least in this case being funny was not the point. I needed a name
> >>that was (a) short, (b) different from "reverse", (c) memorable. It is
> >>understood that other paint colors are available, but please don't
> >>forget to give a little love to the painter. :o) It would be of course
> >>best if names that arguably hurt the language were changed, so please
> >>compile a list.
> >
> >It sounds like a flaw in the language design if the symbols for
> >reversing arrays and ranges somehow conflict.
> 
> There are two operations: reverse the thing in place, and span it in
> retrograde order.

I think reverse (in-place) and reversed (returns a range that iterates in
reverse order) are *very* clear in terms of that distinction.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------

Reply via email to