Capturing incorrect use of = vs ==
One pretty big (and easy) mistake to make in coding is forgetting to use == instead of =
This can lead to a lot of head scratching and bug hunting. I would really like to see the introduction of a warning to flag this one.
p=100 if p=50 then print("I am not supposed to execute here but I do") end
For the above the scope of the code will actually run due to the incorrect use of "=" instead of "==" for the comparison check.
A nice little warning would help to catch such easy to make mistakes.