Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion S-exp vs XML, HTML, LaTeX (was: Why lisp is growing)

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!lostwithiel!nobody
From: Tim Bradshaw <t...@cley.com>
Newsgroups: comp.lang.lisp
Subject: Re: S-exp vs XML, HTML, LaTeX (was: Why lisp is growing)
Date: 28 Dec 2002 13:41:57 +0000
Organization: Cley Ltd <www.cley.com>
Lines: 33
Sender: tfb@lostwithiel
Message-ID: <ey3u1gyxntm.fsf@cley.com>
References: <86wumi23v3.fsf@bogomips.optonline.net> <6f8cb8c9.0212170929.6dcf62da@posting.google.com> <3DFF7553.6090209@nyc.rr.com> <SXYAPpDQd=DUjGJ1pAHIKwzW5Z1n@4ax.com> <atql2v$5v1$1@newsmaster.cc.columbia.edu> <3249243947379622@naggum.no> <b295356a.0212200448.5e455c3e@posting.google.com> <cf333042.0212201140.66c2df58@posting.google.com> <b295356a.0212221337.70f9664b@posting.google.com>
NNTP-Posting-Host: lostwithiel.cley.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.demon.co.uk 1041086101 9678 212.240.242.98 (28 Dec 2002 14:35:01 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Sat, 28 Dec 2002 14:35:01 +0000 (UTC)
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

* thelifter  wrote:
> k...@ashi.footprints.net (Kaz Kylheku) wrote in message news:<cf333042.0212201140.66c2df58@posting.google.com>...
 
>> In XML, if I have <foo>1234</foo>, what is 1234? Is it a character
>> string of four digits? Or is it an integer? Where are the semantics?

> Often it is clear from the context what type it is. Often it doesn't
> matter, you can just treat everything as a string. And if you want to
> introduce type, nothing stops you. Example:

> <foo type="integer">1234</foo>

So now I have to write my own little string->integer routine, and my
own little string->float routine, and my own little string->x routine
for every type x that I want to support that isn't a string.  You have
no idea the joy I feel at having to write all these little parsers,
especially the float one, which I have about 1% chance of getting
right.

What was the problem XML was meant to solve, again?  Something to do
with not having every application have its own little parser for data
interchange, wasn't it?  But they didn't bother to provide syntax for
numbers, a type of data that programs do quote often need to
interchange, oh no, because that would have actually involved solving
the problem rather than providing employment for a few thousand CS
graduates writing yet another buggy, incomplete float parser.  Well, I
hate to tell you, but the high-tech bubble has pretty much burst and
it might be about time that people designing data interchange formats
actually designed them, rather than solving some trivial subset
problem, badly: paying for non-working systems is no longer
fashionable.

--tim