2 ms·
The comma operator is a bad idea in most cases, but his idea of using it to unobtrusively insert a `console.log` debug statement inside an expression, is pretty
by tripzilch 15y ago
The comma operator is a bad idea in most cases, but his idea of using it to unobtrusively insert a `console.log` debug statement inside an expression, is pretty clever and might actually be a sort of valid use for this language feature.
Also the way it allows one to formulate a `do { .. } while ( .. )` construction, is a nice and clever trick, but already violating the principle of least astonishment too much.