4 ms·
I remember being very confused when I saw !!x on a C source code. It's a shorthand for (x != 0 ? 1:0), to return error codes. And then almost everything from J
by TrianguloY 4y ago
I remember being very confused when I saw !!x on a C source code. It's a shorthand for (x != 0 ? 1:0), to return error codes.
And then almost everything from JavaScript. Including
function setPos(horizontal,value){
this.position.edit()["set"+(horizontal?"X":"Y")](value).commit();
}