3 ms·
Nice, I don't recall I ever saw `x >>> 0`, bit it reminds me of the infamous "x goes to zero" operator `x --> 0` [0] and its even more expressive sibling, the "
by falcor84 3y ago
Nice, I don't recall I ever saw `x >>> 0`, bit it reminds me of the infamous "x goes to zero" operator `x --> 0` [0] and its even more expressive sibling, the "x slides to zero" operator [1].
[0]
https://stackoverflow.com/q/1642028/493553 https://stackoverflow.com/q/1642028/493553
[1] https://stackoverflow.com/a/8909176/493553 https://stackoverflow.com/a/8909176/493553
- conaclos 3y agoI already used `x >>> 0` to ensure that the integer is a unsigned integer on 32bits. `x|0` ensures that the integer is signed on 32bits.