You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Safest would be to not have the parsing ambiguity at all since more exceptions will occur when new features are added but I guess that people don't want to write ~ as a unary negation.
If we have a unary/binary detector like in my language then we need to make sure that each new token is considered in the pattern matching. This can be done using tables or classes but it is a mess that is not suitable for something this critical.
This is due to the fact that
-
is both unary and binary. A temporary solution would be to check if left and right are identifiers/numbers.The text was updated successfully, but these errors were encountered: