W3C home > Mailing lists > Public > www-style@w3.org > September 2006

Re: [css3-namespace] Case sensitivity and XML namespace in document.

From: Werner Donné <werner.donne@re.be>
Date: Mon, 11 Sep 2006 19:23:16 +0200
Message-ID: <45059B84.4030700@re.be>
To: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Cc: www-style@w3.org

As soon as case-insensitivity is introduced a software implementation
is in a mixed-sensitivity world with respect to string processing.
Values and data are mostly case-sensitive. So you have to be very
careful to pick the right string compare function in each situation.

Comparing two strings in a case-insensitive way is more complex. We
take this for granted, because there is always a library which offers
the functionality. The problem is finding out the correspondence
between the upper and lowercase characters. This may be trivial for
our alphabet, but not necessarily for others.

In a programming language grammar it is under control, because we
choose the keywords and hence the alphabet. But anything that is
not declared in the lexer will be processed with the generic
case-insensitive string compare functions, which are much slower.

Werner.

Philip TAYLOR wrote:
> 
> 
> Werner Donné wrote:
> 
>> Having said that, I should add that I dislike case-insensitiveness
>> in any form. It has no advantage and only complicates string
>> processing.
> 
> With respect, neither case-sensitivity nor case-insensitivity have
> any particular advantage or disadvantage when compared to the other;
> it is only when one is forced to occupy a mixed-sensitivity world
> that the less common appears disadvantageous when compared to the
> more common, but which is less and which is more common depends
> very much on the universe of discourse ...
> 
> Philip Taylor
> 
> 

-- 
Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Monday, 11 September 2006 17:23:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT