2 ms·
The quotation thing is irritating if you treat them like matched parentheses, but if you allow the opening and closing quotes to have different meanings, there
by dTal 5y ago
The quotation thing is irritating if you treat them like matched parentheses, but if you allow the opening and closing quotes to have different meanings, there is a logical interpretation. The opening quote is required syntax for the beginning of any quoted paragraph, so that the reader is reminded that we're still in an extended quote. The closing quote means "this person is finished speaking, and the next quote may be assumed to be a different person." The advantage is the streamlining of longer exchanges:
John spoke to Paul. John said: "I have two things to say.
"One of the things is this."
"What's the other?"
"The other thing is this."
Even in the purest programming languages, we're happy to design special-case idioms that sacrifice perfect orthogonality for better human factors, provided there's an unambiguous parse. Scheme provides (define <identifier> <expression>) - utterly elementary. Yet defining functions by binding identifiers to anonymous lambdas is so annoying that an unneccesary and inconsistent second syntax is provided, (define (<identifier <args...>) <expression>).