Re: [If/then and sequences...]
- Posted by David Cuny <dcuny at LANSET.COM> Aug 30, 2000
- 502 views
Bernie wrote: > "C" uses == ( double equal signs ) for comparison > and = ( single equal sign ) for assignment > which makes good sense and I think would be easy to implement. I strongly disagree. It's too far easy to type '=' for '=='. I've always considered this to be a Very Bad Thing in C and C-derived languages. I don't have anything nice to say about '=:', either. On the other hand, Euphoria's implementation of '=' is, while logically consistant, quite irritating. I rarely (intentionally) used '=' on a sequence. On the other hand, I'm constantly using the equal() operator. It's a source of confusion to new users of the language, and is one of the few things in the language that I *really* despise. I really wish that Robert had instead written eq/lt/gt functions, for the few times that sort of thing is needed. I suspect that if Robert changed the current behavior, very little code would break. -- David Cuny