5 ms·
I considered such an assignment operator for a little language I was developing, but there was an ambiguity between this: a <- 25 and this: a < -25 Sinc
by lioeters 6y ago
I considered such an assignment operator for a little language I was developing, but there was an ambiguity between this:
a <- 25
and this:
a < -25
Since everything was an expression in the language, the latter would evaluate to a boolean. In the end I just went with "=" for assignment, and "==" for equality.