Removing the quote distinction?
Posted May 19, 2005 16:07 UTC (Thu) by
liljencrantz (guest, #28458)
In reply to:
Removing the quote distinction? by kleptog
Parent article:
Fish - The friendly interactive shell
Actually I mostly got the idea from another language I occasionally misuse: English. It is common in written English to nest quotations within quotations by alternating between single and double quotes. It seems intuitive and useful to me, as I often end up writing strings that will be parsed at a later time. I thought that this would be unsurprising for other people as well, but it seems I might have been wrong on that one. So I may have the law of least surprise against me on this one.
On the other hand, one reason for not wanting two kinds of quotes is that I feel the constructs of computer languages should be as orthogonal as possible. This way you maximize the number of ideas that can be concicely expressed with a syntax of a given size. Two different types of quotes that do nearly the same thing does not strike me as an elegant solution.
(
Log in to post comments)