make (a < b < c) illegal?

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Thu Feb 8 01:55:51 PST 2007


Frits van Bommel wrote:
> 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.

Never thought of that. Very interesting. The good cop/bad cop routine 
all over again :o).

Andrei



More information about the Digitalmars-d mailing list