Comment
Comment by nemetroid
Using '=' for both assignment and comparison is awkward when parsing incomplete code. Consider e.g.:
The user starts writing (<|> is the cursor position):
This is a valid expression (i is a boolean). But the user probably intends to finish writing something like:
So in the intermediate state we would like to emit a single warning about an incomplete statement. But since it is valid as written, we instead end up warning about e.g. j being unbound.