On Mon, May 29, 2000 at 02:00:37AM +0200, A G F Keahan scribbled:
> 
> [SECTIONNAME1]
> wibble1 = blah
> wibble2 = 35
> wibble3 = "a string that has more than one word"
> ; this is a comment -- ignored
> wibble4 = 4.567e9
> 

<snip>

> 
> A trivial thing to write, and a very useful one -- surely it's been done
> before, no?

Not that I know of, but I havn't looked very far.

You are right, this could be done, but I wouldn't call it trivial.  I've
always come to the conclusion that the interface to something like this
would have to be kind of complex in order to keep it generic enough to
be really useful.  For instance, there isn't one standard Unix config
file format.  Do you want to build into it some of the different
[commonly used] formats?  If so, who defines these formats?  What kinds
of restrictions do you want to impose on it?  Do you want to enforce
unique identifiers?  Globally unique or just unique within a section?
Should this be configurable (with a config file?! ;) ?  Why not just use
xml?  (the token xml suggestion, sorry)

All of this is managable, it just seems like more trouble than it's
worth. (but if you write it, I'll probably use it! ;)

-brian

-- 
Brian O'Shea
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to