Hacker News new | ask | show | jobs
by _kst_ 2107 days ago
Is "x<-3" an assignment to x or a comparison of x to -3?

The same problem led early C (pre-K&R1) to change its compound assignment operators from "=op" to "op=". In early C, "x = -3" assigned the value -3 to x (as it does now), but "x=-3" meant "x = x - 3" (now written "x-=3").