3 ms·
I sometimes do this. I find that for some expressions, especially long ones, it reads better to put the shorter operand on the left. It can help establish conte
by wahern 8y ago
I sometimes do this. I find that for some expressions, especially long ones, it reads better to put the shorter operand on the left. It can help establish context earlier in the statement so you can more quickly scan the code.
As for it being jarring, well that's sometimes a good thing. Narrow city roads with heavy pedestrian traffic can make an automobile driver feel anxious and convinced the road unsafe. But making the driver uncomfortable is precisely what makes the road actually objectively safer.
If you want a reader to slow down and appreciate a critical statement, then swapping the operands can sometimes accomplish that in a way that comments may not.