Stewart Stremler wrote:
I recently ended up looking at XML that had a <section> tag, and
<section> tags could contain other sections.  Trying to match up
the </section> with the appropriate opening-tag *sucked* -- same
problem as trying to match up braces, parents, or brackets, only
more difficult.

Oh, dear God, no ...

Talk about missing the whole point ... wow.

So which is worse? Pythonic whitespace or XML unreadability?

Pythonic whitespace.

Sorry, I'm going to disagree on that one. Just about anything XML is worse than anything else non-XML. This, however, is due to the extreme suckiness of XML, not due to the goodness of what it is being compared against.

The one gripe I do have about Python whitespace is that automated tools have no way of knowing when it ends. That causes me more than a little grief sometimes.

Personally, though, I like the fact that the indentation style is specified. It means that every piece of code is indented exactly the same way. Given that code should be written for humans to read, that's a good thing.

However, I'm sure that if you used braces and mandated indentation, people would gripe about that too. This is why we have multiple programming languages.

-a


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to