Re:Why Does “=” Mean Assignment?
by raverbashing on Tuesday April 10, 2018 @05:09PM
(#16805452)
Let became optional quickly it seems
But most BASIC versions would accept 'let a = 1'
Personally, I don't see why the big fuss. If your assignment and comparison operators are the same the only thing you lose is doing x = (y == 2); kind of expressions (since you would disambiguate from conditional expressions).
Now, assignments are done more frequently than comparisons, hence why it makes sense for it to be the simpler/shorter one.
But most BASIC versions would accept 'let a = 1'
Personally, I don't see why the big fuss. If your assignment and comparison operators are the same the only thing you lose is doing x = (y == 2); kind of expressions (since you would disambiguate from conditional expressions).
Now, assignments are done more frequently than comparisons, hence why it makes sense for it to be the simpler/shorter one.