Reputation: 19353
Anyone who grew up on BASIC, and later switched to another language, had a real difficulty getting used to "(a == b)" rather than "(a = b)" to test for equality.
Is there a dialect of BASIC which uses the "==" operator for comparisons rather than overloading "=" for assignments and comparisons? Or - and maybe this is stretching it - is there an implementation which might be easily hackable to use this behavior (to change the tokens recognized by the parser?)
This can be a DOS/Windows/Linux implementation, and doesn't have to be terribly fully-featured. (I'm using this for instructional purposes.)
Upvotes: 4
Views: 204
Reputation: 2119
Isn't the reason for the double-equal in algol family to distinguish equality from assignment? What, then, would you have us do with the "LET" keyword? Abandon it? It was my favorite keyword! So permissive...
Open source, FTW!
Upvotes: 2