4 ms·
"Programmable semicolons" is a cool sounding term, although I don't quite understand what it really means in relation to JavaScript. Are programmable semicolon
by DonHopkins 11y ago
"Programmable semicolons" is a cool sounding term, although I don't quite understand what it really means in relation to JavaScript.
Are programmable semicolons optional, and can you program automatically inserted semicolons?
It brings to mind my favorite C++ extension: Generalized Overloading for C++2000, that lets you override specific types of white space including space, tab, newline, and even the absence of white space! [1]
FORTH has programmable semicolons!
: ; POSTPONE EXIT REVEAL POSTPONE [ ; IMMEDIATE
There's an interesting comp.lang.forth discussion [2] where somebody asks a great question about defining semicolon in Forth, that's promptly answered by the great Elizabeth D. Rather herself, of FORTH Inc. [3] [4]!
[1] http://www.stroustrup.com/whitespace98.pdf http://www.stroustrup.com/whitespace98.pdf
[2] https://groups.google.com/forum/#!topic/comp.lang.forth/79XRi5PtK6M https://groups.google.com/forum/#!topic/comp.lang.forth/79XR...
[3] https://en.wikipedia.org/wiki/Elizabeth_Rather https://en.wikipedia.org/wiki/Elizabeth_Rather
[4] https://archive.org/details/Programm1984 https://archive.org/details/Programm1984