[Home] [By Thread] [By Date] [Recent Entries]
On Mon, Jun 3, 2013 at 6:22 PM, David Lee <dlee@c...> wrote:
I find it amusing that you feel so sure you should have heard of them.
You seem a bit confused in reading what I wrote. I mentioned quirks specifically in ElementTree, which is one of many Python libraries. To be specific, ET decides whether to encode a given node as UTF-8 or UTF-16 as an optimization (preserving the encoding info). I think that's a lousy deign choice, but in XML terms, it's not incorrect, nor does it affect most developers for most use cases.
I find it telling that you didn't also mention ET's quirks re: mixed content, but I'll mention that either. ET takes a linked-list-ish approach to presenting child content. I find that awkward for dealing with mixed content, but again it's not incorrect, and it's still a hell of a lot easier than processing mixed content in JAXP or any other Java library I've seen.
Then you should be scared of using most languages, including Java, which have Unicode quirks built in at an even deeper language.
Python 3.3 probably has the best Unicode implementation of any language, at this point. So sure, there is plenty to scare you. See my earlier point about not ascribing to XML considerations that are far more fundamental.
Heck, most high-end programmers don't, but again, bytes (or rather characters) long before XML. Heck go look how many Web pages out there have Unicode quirks (even if you do set aside alternate encoding systems, it's a frighteningly high number).
Which is *precisely* my point.
That's possible, but I return your submission with an annotation that I've done more than my fair share of training developers on XML. I know what we're up against.
Uche Ogbuji http://uche.ogbuji.net Founding Partner, Zepheira http://zepheira.com http://wearekin.org http://www.thenervousbreakdown.com/author/uogbuji/ http://copia.ogbuji.net http://www.linkedin.com/in/ucheogbuji http://twitter.com/uogbuji
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



