3 ms·
That's like not knowing which electron is supposed to flow through which resistor. Man, how do electronic engineers work without knowing important things? I my
by kazinator 9y ago
That's like not knowing which electron is supposed to flow through which resistor. Man, how do electronic engineers work without knowing important things?
I myself made a dialect of Lisp in which there are square brackets too. They serve a very useful purpose. However, I wouldn't introduce this just for the sake of having a different character to match when closing. That aspect of it is undeniably a pain in the ass; I'm irritated by my own language when I have to close three parens, then close a square bracket and continue with parens. It's an irksome interruption that calls for my attention to the irrelevant, and I have to remind myself of the benefit of that square bracket.
It would be insane to introduce an alternative bracket which has to be matched with its mate, but is identical in meaning to the parenthesis, providing no semantic variation whatsoever. Nobody in their right mind would want to irk themselves on purpose with such a stupid thing.
Languages with syntax like end if and end while made a certain amount of sense in an era in which compiling your program meant standing in line with a deck of punched cards before a job submission window, and you needed to get as many diagnostics as possible out of a single run.
HTML's named closing delimiters for elements have a similar "benefit": the machine can keep going in the face of nesting errors and make some sort of sense of the document anyway. (The bad thing there being that the document is then effectively accepted as good.)