comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Config_Files proposal {long}
Date: Wed, 3 Jul 2002 14:10:38 +0000 (UTC)
Date: 2002-07-03T14:10:38+00:00	[thread overview]
Message-ID: <afv0ku$h8k$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: afk460$9f5$1@geraldo.cc.utexas.edu

Bobby D. Bryant <bdbryant@mail.utexas.edu> wrote:
[Scheme vs XML]
: 
: The latter is, IMO, *much* easier to read and comprehend.  It's
: also about (guessingly) 40% smaller. ...
:  the
: lean syntax can be very important in config files because it
: promotes readability -- partly through reduced clutter, and partly
: because there will be fewer times when non-semantic line wraps are
: required.

All this is usually addressed in good DTD design (and you will
be pleased to hear, if you haven't yet, that the ISO standard
accompanying SGML, DSSSL, is actually describing a specialised
Scheme).

It is a sad mistake that people don't see tags as carrying essential
meaning (like your identifiers in function name position do),
and not syntax clutter.
Tags and Attributes as important means of adding explicit additional
infomration about the structure of the document, mutual relations,
data types, restrictions, constraints....

As long as we will see uninformed non-sensical abuse like I have
to from time to time:

<ingredient>
<number>1</number><colon/>
 <type>flour<variant>wheat</variant></type>
 <amount>125<unit>g</unit></amount>
</ingredient>

there will be a lot to criticize about the "features" of XML.
It could be written, not loosing anything:

<ingredient amount="125" unit="g">
 <flour type="wheat"/>
</ingredient>

Moreover, something makes me start thinking there is a general dislike
for anything but parentheses in some parts of the Ada community :->
Anything but dots and parens and semicola is called clutter?

: The only disadvantage I can think of is that the lack of labeled
: end markers makes it hard to see where very long lists end.

Add to this the varying skill of customers at using Lisp-syntax aware
editors...

:  cosmetic
: comment, thus:
: ...
:   (Floats
:      (F1 1.2)
:      (F2 2.3)
:      (F3 4.2)
:      (F4 1.9)
:       ...
:      (F468 7.2)
:      (Comment: End of "Floats" section.)
:   )

Are these cosmetic comments easily checked to belong to where
they should belong? Same for ()?


Really, these SGML/XML guys have spent more than 30 years on how to
add marking syntax to data carrying document text--I think
they have done something that should at least be considered a
valuable source of information. At least in this corner of config
file discussions. Of course you can't compute with XML like you
can with Scheme.

If you look closely, you will note that, to Lisp programmers,
there is a familiar nesting in SGML/XML :-)

<Floats desc="whatever these numbers mean...">
 <F id="north" v="1.2"/>
 <F id="west"  v="2.3"/>
 <F id="south" v="4.2"/>
 <F id="east"  v="1.9"/>
 <!-- ... -->
</Float>


-- Georg



      parent reply	other threads:[~2002-07-03 14:10 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-18 17:07 Config_Files proposal Stephen Leake
2002-06-18 21:55 ` Darren New
2002-06-19 16:11   ` Stephen Leake
2002-06-19 16:51     ` Darren New
2002-06-19 18:39       ` Stephen Leake
2002-06-19 19:48         ` Darren New
2002-06-20 14:03           ` Stephen Leake
2002-06-20 16:36             ` Darren New
2002-06-20 17:49               ` Jacob Sparre Andersen
2002-06-20 20:00                 ` Stephen Leake
2002-06-20 20:16                   ` Darren New
2002-06-20 20:45                     ` Stephen Leake
2002-06-21  2:06                     ` Ted Dennison
2002-06-21 12:55                       ` Marin David Condic
2002-06-24 13:20                         ` Stephen Leake
2002-06-21 15:29                       ` Darren New
2002-06-24 13:16                         ` Stephen Leake
2002-06-24 15:06                           ` Darren New
2002-06-24 17:09                             ` Stephen Leake
2002-06-24 17:57                               ` Darren New
2002-06-24 18:53                                 ` Stephen Leake
2002-06-24 21:24                                   ` Darren New
2002-06-29  3:15                                   ` Ted Dennison
2002-06-28 23:21                           ` Randy Brukardt
2002-06-29  3:01                             ` Ted Dennison
2002-07-01 20:58                               ` Randy Brukardt
2002-07-02  0:31                                 ` Ted Dennison
2002-07-02  4:43                                   ` Randy Brukardt
2002-07-05 21:51                                     ` Robert I. Eachus
2002-06-20 19:54               ` Stephen Leake
2002-06-19  6:53 ` Dr. Michael Paus
2002-06-19 15:18   ` Ted Dennison
2002-06-19 15:08 ` Ted Dennison
2002-06-19 16:18   ` Robert I. Eachus
2002-06-19 16:53     ` Darren New
2002-06-19 18:22       ` Stephen Leake
2002-06-20 13:12         ` Marin David Condic
2002-06-24 13:09           ` Stephen Leake
2002-06-24 15:08             ` Darren New
2002-06-24 17:13               ` Stephen Leake
2002-06-24 17:59                 ` Darren New
2002-06-24 19:04                   ` Stephen Leake
2002-06-24 21:29                     ` Darren New
2002-06-25 12:52                     ` Georg Bauhaus
2002-06-25 12:45                 ` Georg Bauhaus
2002-06-19 21:32       ` Georg Bauhaus
2002-06-19 18:20     ` Stephen Leake
2002-06-21 20:04       ` Robert I. Eachus
2002-06-24 13:39         ` Stephen Leake
2002-06-19 16:48   ` Marin David Condic
2002-06-20 13:04     ` Georg Bauhaus
2002-06-20 13:53       ` Marin David Condic
2002-06-20 14:19     ` Stephen Leake
2002-06-20 15:37     ` Ted Dennison
2002-06-19 18:15   ` Stephen Leake
2002-06-20  1:35     ` Ted Dennison
2002-06-20 14:10       ` Stephen Leake
2002-06-20 20:50         ` Jacob Sparre Andersen
2002-06-20 20:58           ` Stephen Leake
2002-06-21  2:21           ` Ted Dennison
2002-06-24 13:22             ` Stephen Leake
2002-06-20  1:37     ` Ted Dennison
2002-06-29 11:03 ` Config_Files proposal {long} Bobby D. Bryant
2002-06-29 12:17   ` Bobby D. Bryant
2002-06-29 13:07   ` Mark Biggar
2002-07-03 14:10   ` Georg Bauhaus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox