RFortunes is a user on mamot.fr. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
RFortunes @rfortunes

So, with the item in the original query:

if (x<-3) do_something;

if they wrote it as

if (x<(-3)) do_something;

there would be no problem (and no doubt about what went with what). Of course in complicated expressions this could induce an episode of ocular lispopia, but apart from that it's safe!
-- Ted Harding (about potential confusion between assignment and comparisons with negative numbers)
R-devel (August 2010)

· rfortunes · 0 · 0