slang icon indicating copy to clipboard operation
slang copied to clipboard

Use of == when the result is not consumed should be an error

Open savage309 opened this issue 4 years ago • 0 comments

For whatever reason we tend to have bugs due to code like this

foo.bar == SOMETHING;

It is valid, but doesn't do the right thing ... It will be nice if this can be compiler error, or at least to have a compiler option to make at a compiler error.

savage309 avatar Feb 03 '21 20:02 savage309