4 ms·
The JavaScript Comma Operator: bringing perl-esque side-effects to your code since....wait, has this thing always been an available operator? Whatever. The Java
by knieveltech 15y ago
The JavaScript Comma Operator: bringing perl-esque side-effects to your code since....wait, has this thing always been an available operator? Whatever. The JavaScript Comma Operator: bringing perl-esque side effects to your code since it's introduction. There. Ahem.
- jleader 15y agoTo give credit where credit is due, Perl got the comma operator from C. A quick glance at their manuals suggests that neither BCPL (http://cm.bell-labs.com/who/dmr/bcpl.html http://cm.bell-labs.com/who/dmr/bcpl.html) nor B (http://cm.bell-labs.com/cm/cs/who/dmr/kbman.html http://cm.bell-labs.com/cm/cs/who/dmr/kbman.html) had it.