Re: = vs := and = vs ==

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

Just to put my position on this so people know.

I find == annoying in awk which I use a lot - it is error-prone.

I have always liked := and even <- for assignment (Ada, Pascal, Algol)

I don't mind = and for some reason I find Euphoria's usage for both assignment and comparison comfortable and easily better than C's =, ==.

My original comment was not a criticism but to make the point that a = b is not surprising but 'A' + 'B' is (even though it will sum in Euphoria).

I don't use goto much and would rather do without it generally but if x then goto ERROR is usually cleaner than other error-handling in Euphoria.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu