4 ms·
What would this mean? x = @ + (y = @+1) Would this be legal? x = 1 + (@ = @ - 1) etc...
by reycharles 14y ago
What would this mean?
x = @ + (y = @+1)
Would this be legal?
x = 1 + (@ = @ - 1)
etc...
- JoeAltmaier 14y agoBoth could have reasonable definitions. Also a serious concern; even in C simple expresions remained undefined for a decade e.g. foo(i, i++, i--) was implementation-defined for years. For that matter, in the 1st C implementation the combined-assignment operators were defined this way: i =+ 1; until they noticed it was ambiguious. C has a long history of ambiguity. So maybe its good that C was no more ambitious that it was.
- JoeAltmaier 14y agoWhy stop there? Add x = (@++? @ : @ /= 2);