Is there a BASIC dialect that uses "==" as a comparison operator?

Anyone who grew up on BASIC and then switched to another language encountered a difficult habit of "(a == b)" rather than "(a = b)" to test equality.

Is there a BASIC dialect that uses the "==" operator for comparison, and not for the "=" overload for assignments and comparisons? Or - and perhaps it stretches it - is there an implementation that can be easily hacked to use this behavior (to change the markers recognized by the parser?)

It could be an implementation of DOS / Windows / Linux and should not be terribly full-featured. (I use this for training purposes.)

+4
source share
1 answer

Is there a reason for double equality in the algol family to distinguish between equality and purpose? What could you do with the keyword "LET"? Give it up? That was my favorite keyword! So permissive ...

http://www.freebasic.net/

Open Source, FTW!

+2
source

Source: https://habr.com/ru/post/1301291/


All Articles