|
|
|
|
|
by jamesbritt
6512 days ago
|
|
" I don't think you can get much more succinct than that and still express the idea of a list." What matters is: a list of what. Telling me (5, 7,11) means nothing. <sizes dress='5' pants='7' shoes='11' />
is what's of value.Would an sexp be terser? Sure. But not enough to matter. |
|
Part of the problem with XML is that it causes these huge debates about how to structure and name the data. Another problem is that attributes don't nest nicely; that was the main problem in this instance. In other words, XML can be used nicely to represent a tree structure and reasonably well for lists or simple associative structures. But as soon as those associative elements need to map to something more complicated, you start having issues with how best to structure everything.
With S-expressions easily able to express assoc-lists while also being trivially nestable, these issues don't come up.