2 ms·
Abuse of bitwise operators is an abomination, but I'd instinctively write "value.abs" (scala), which is clearer than an if. Obviously many things are ultimatel
by lmm 14y ago
Abuse of bitwise operators is an abomination, but I'd instinctively write "value.abs" (scala), which is clearer than an if.
Obviously many things are ultimately implemented using if, but it's too low-level a construct to be using for day-to-day work.