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
I read somewhere on the internet that ~expr was the same as ~~~~expr, which is not, it is a repeated application of the ~ operator, and it happens that applying a boolean negation an odd (and > 1) number of times is useless since it can be rewritten as a single one. Applying ~ twice is ok, it is a cast to bool (~~3 is T), but applying it four or more times is also useless.
Scilint should warn about a number of nested applications of ~ strictly superior to 2.
Scilint should also probably warn about a number of applications of - strictly superior to 1.
The text was updated successfully, but these errors were encountered:
I read somewhere on the internet that ~expr was the same as ~~~~expr, which is not, it is a repeated application of the ~ operator, and it happens that applying a boolean negation an odd (and > 1) number of times is useless since it can be rewritten as a single one. Applying ~ twice is ok, it is a cast to bool (~~3 is T), but applying it four or more times is also useless.
Scilint should warn about a number of nested applications of ~ strictly superior to 2.
Scilint should also probably warn about a number of applications of - strictly superior to 1.
The text was updated successfully, but these errors were encountered: