So I get that
calc_formula(a, b, false)
Is unclear but so are `a` and `b` ctx.arc(100, 200, 300, 0, Math.PI*2, false)
or gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 100, 200, 0,
gl.RGBA, gl.UNSIGNED_BYTE, null);
How are those examples any more self documenting? I don't see anything special about boolean anymore than the other arguments. If you really want your code to be clear (and I'm not saying I do this) you'd need to either use a language that allows naming every argument or else put every argument in a variable with a descriptive name var centerX = 100;
var centerY = 200;
var radius = 300;
var arcStartRadians = 0;
var arcEndRadians = Math.PI * 2;
var counterClockwise = false;
ctx.arc(centerX, centerY, radius,
arcStartRadians, arcEndRadians,
counterClockwise);