2011-06-18 23:39, Dr J R Stockton wrote:
>>> I don't see that anyone has actually said that the closing quote must be
>>> literally the same as the opening one.
>>
>> I thought that was pretty obvious if you think about the very idea of
>> string literal delimiters.
>
> Never presume that the other fellow has the same idea of what is
> obvious.
That would mean ending all human communication. All efforts to
communicate must postulate a huge amount of assumptions (though partly
varying). I don' know why you felt it to be necessary to state the
obvious. It seems that you wanted to say that the delimiter cannot
appear in the delimited string.
> Life is too short and inter-cranial memory too cluttered to use fancy
> quotes except when publishing professionally
At least when you use JavaScript on or for web pages, you are using it
when publishing. Don't you think the quality should be professional?
It's the ASCII quotes that are "fancy", computerese. They were
introduced on mechanical typewriters, than transferred to early
character codes on computers (and keyboards), lumping together opening
and closing quotation marks and several other characters, even intending
the quotes play, via overprinting, dual roles as diacritic marks. There
is little reason to preserve that barbaric treatment of human language
punctuation.
As I mentioned, using proper punctuation marks _avoids_ trouble, since
in JavaScript, as in most computer languages, they are just character
data with no syntactic meaning.
> - and then one needs to be
> sure that the user's font will always understand them.
Do you expect to find many fonts that do not contain the quotation marks
as used in English?
> <FAQENTRY> OTOH, it might be useful to have in the FAQ a small subset of
> \x##, \u####, and&word; codings, with a link or two to a fuller list.
Hardly. Any subset would be arbitrary and biased. FAQs are no
replacement for references. And &word; codings aren't JavaScript at all.
> <http://en.wikipedia.org/wiki/List_of_Unicode_characters> is useful, and
> more concise than what unicode.org has.
And infinitely more unreliable. It's also far too long to give an
overview, and it's far to limited to give a complete list. Even the page
itself says: "This article may be too long to read and navigate
comfortably. Please consider splitting content into sub-articles and
using this article for a summary of the key points of the subject."
That's a polite way of saying that it is overlong, messy, and hasn't
much point in it.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/