Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Pragmatic namespaces

From: "Pete Cordell" <petexmldev@---------.--->
To: "Michael Kay" <mike@--------.--->, "'XML Developers List'"
Date: 8/4/2009 7:38:00 AM
Original Message From: "Michael Kay"

>> - Although a minor concern, all other things being equal it
>> should be more efficient to parse as the entropy is at the
>> start of the string making it easier to look up.
>
> It's just as easy to compare strings starting at the end as at the front!

Sure you can write your own string compare methods that start comparing from 
the end.  But if the solution becomes wide spread then a lot of string 
comparing will be done with comparison algorithms built into the various 
implementation language (e.g. Java, C#, JavaScript and so on) and they tend 
to start from the front.

Just because you _can_ write a string compare function that starts from the 
end is no reason to have reversed names.  It certainly doesn't outweigh the 
benefits mentioned of using non-reversed names.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent