|
Home > Archive > MS SQL XML > January 2006 > Names starting with number
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Names starting with number
|
|
|
| It may sound like true/false question of Discovery channel. Anyway.
Do you know why you can't use names starting with number in XML names,
column names, and variable names in programming languages? I am simply
curious.
--
Pohwan Han. Seoul. Have a nice day.
| |
| MichaelQuinlan 2006-01-10, 11:23 am |
| In the 1950s and 1960s when many early programming languages were defined, it
was convenient to determine the type of token (identifier, number, operator,
punctuation) based on the first character of the token. Tokens that began
with a digit were assumed to be numbers.
"Han" wrote:
> It may sound like true/false question of Discovery channel. Anyway.
>
> Do you know why you can't use names starting with number in XML names,
> column names, and variable names in programming languages? I am simply
> curious.
>
> --
> Pohwan Han. Seoul. Have a nice day.
>
>
| |
| Peter Flynn 2006-01-11, 8:24 pm |
| MichaelQuinlan wrote:[color=darkred
]
> In the 1950s and 1960s when many early programming languages were defined, it
> was convenient to determine the type of token (identifier, number, operator,
> punctuation) based on the first character of the token. Tokens that began
> with a digit were assumed to be numbers.
>
> "Han" wrote:
>
Worse, in FORTRAN, variable names starting with I, J, K, L defaulted
to type INTEGER and all others to type FLOAT (if I remember right :-)
In theory, in SGML, you could specify the digits to be NAMESTRT
characters in the SGML Declaration, but I don't know anyone who has
ever wanted to do it, and I suspect it would majorly conflict with
something else.
<314159>hello</314159> would look very odd to me.
///Peter
--
XML FAQ: http://xml.silmaril.ie/
| |
|
| Thanks Michael and Peter.
--
Pohwan Han. Seoul. Have a nice day.
"Peter Flynn" <peter.nosp@m.silmaril.ie> wrote in message
news:42ljv6F1inss9U1
@individual.net...
> MichaelQuinlan wrote:
>
> Worse, in FORTRAN, variable names starting with I, J, K, L defaulted
> to type INTEGER and all others to type FLOAT (if I remember right :-)
>
> In theory, in SGML, you could specify the digits to be NAMESTRT
> characters in the SGML Declaration, but I don't know anyone who has
> ever wanted to do it, and I suspect it would majorly conflict with
> something else.
>
> <314159>hello</314159> would look very odd to me.
>
> ///Peter
> --
> XML FAQ: http://xml.silmaril.ie/
|
|
|
|
|