Re: s-expression data language



The main arguments for S-expressions over XML (as far as I know) are:

1) S-expressions are simpler. They don't have the attribute/element
asymmetry. They're just nested lists, with key/value pairs as a special
case.

2) S-expressions are terser. This isn't an important argument, in my
opinion, since either can be compressed, and neither is really meant
for human consumption. (Ouch! Maybe not, since we program in
S-expressions. But raw sexprs would certainly not make a good markup
language. Of course, at the same time, programming in XML would be
miserable, so they're both imperfect notations. That's what I mean when
I say that they're not meant for human consumption.)

3) S-expressions are programs. This doesn't initially appear to be a
superb argument, since you need a Lisp implementation to execute
S-expressions as programs. An S-expression parser is certainly a *far*
cry from a Lisp implementation. However, there is something to be said
for the fact that it's actually humanly possible to program in
S-expressions, which opens up the possibility of manipulation
S-expressions with S-expression programs. Substitute "S-expressions"
for "XML" and you have XSLT, but XSLT basically sucks. Anyway, an
S-expression programming language is a really good thing because it
gives you code-data equivalency, which is, of course, good.

There's my $0.02.

.



Relevant Pages

  • Re: Future of LISP. Alternative to XML. Web 3.0?
    ... I didn't realize it meant literally the cr character within the ... instead of XML representation for queries and responses. ... using s-expressions instead of XML, nobody is going to use it, ... Do *any* of those LISP projects have a server I ...
    (comp.lang.lisp)
  • Re: Future of LISP. Alternative to XML. Web 3.0?
    ... using s-expressions instead of XML, nobody is going to use it, ... because it's cheaper to keep the existing XML software and continue ... XML-MAIDEN format or to HTML format and next displayed via standard ... or a CanonML or LISP browser. ...
    (comp.lang.lisp)
  • Re: Scheme s-expressions mapping to XML
    ... S-expressions consist of atoms and pairs. ... An XML document is a tree. ...
    (comp.lang.scheme)
  • Re: s-expression data language
    ... As the guy who appears to have launched the "XML is s-expressions in ... There is no spec for "lisp read syntax". ... messages or XML documents. ...
    (comp.lang.lisp)
  • Re: Oh brave new world, that has such XML in it
    ... Steve VanDevender wrote: ... There's a point to XML? ... The point is to make it clear that S-expressions would have ... Opinions not those | grants to rare events of meanness such power to shape ...
    (alt.sysadmin.recovery)