Re: [If/then and sequences...]

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu