Matt Whiting wrote:
wrote:
Mxsmanic wrote:
writes:
Well, that's true enough, but does any programming language care if
you declare something response, resp, Respond, RESP, rasponse, or
anything else which may, or may not, be similar or the same as a
natural language word?
Yes, some do.
Care to name any programming language that cares about the spelling
of user defined identifiers?
To prevent anal nitpicking, a user defined identifier is a name
invented by the programmer that does not conflict with any reserved
words or identifiers and contains only alphabetic characters (to
avoid an endless discussion about languages that may or may not
allow characters like "-" in an identifier).
And, to make it crystal clear, I'm not talking about spelling it
differently after it has been defined.
Not counting the second use is like saying that all misspellings of
English words don't count once they are spelled the first time in the
dictionary. Just as an English dictionary sets the standard for the
spelling of English words, the symbol definition (explicit or implicit)
sets the standard for the symbol. Any different spelling subsequently
is a misspelling. Your exception of anything other than the first use
is just goofy.
Yes, and no.
Once defined, an identifier has to be consistent, obviously.
But a user defined identifier does not have to be spelled according to
any dictionary spelling, which is what MX said when he started this
nonsense.
No programming language checks an English (or any other) dictionary
to see if user defined identifiers, which just happen to be English
words for the sake of readability, are spelled correctly.
--
Jim Pennino
Remove .spam.sux to reply.