make (a < b < c) illegal?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Thu Feb 8 01:42:16 PST 2007


Steve Horne wrote:
> 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.

My thoughts exactly.



More information about the Digitalmars-d mailing list