make (a < b < c) illegal?

Steve Horne stephenwantshornenospam100 at aol.com
Wed Feb 7 20:27:35 PST 2007


On Wed, 07 Feb 2007 17:06:07 -0800, "Andrei Alexandrescu (See Website
For Email)" <SeeWebsiteForEmail at erdani.org> wrote:

>Walter Bright wrote:

>> Andrei has proposed (and I agreed) that this should be done away with in 
>> the language, i.e. comparison operators should no longer be associative.
 
>For the record, (clears throat) let me add that I initially suggested to 
>make them associative with the right meaning, but was shot down. Making 
>the comparison operators (and that includes != and ==) nonassociative is 
>the next best thing to do.

Agreed, but with an extra note - once the operators have been
nonassociative for a while, maybe making them associative again (but
with the right meanings) might be more palatable.

-- 
Remove 'wants' and 'nospam' from e-mail.



More information about the Digitalmars-d mailing list