From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-03 05:54:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!news.net.uni-c.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: A standard package for config files is needed Date: Mon, 03 Jun 2002 14:53:40 +0200 Organization: Centre for Chaos and Turbulence Studies, Niels Bohr Institute Message-ID: <3CFB66D4.E8367F78@nbi.dk> References: <3CF6846C.3544EB21@nbi.dk> NNTP-Posting-Host: alf.nbi.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 1023108849 10736 130.225.212.55 (3 Jun 2002 12:54:09 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Mon, 3 Jun 2002 12:54:09 +0000 (UTC) X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: fo,da,no,sv,is,de,fr,en Xref: archiver1.google.com comp.lang.ada:25254 Date: 2002-06-03T14:53:40+02:00 List-Id: Marin David Condic wrote: > The reason is not for efficiency. The reason is that if the file is created > under program control and is not editable by other means, then you can't > fill it with corrupt data. Optimist. > Hence you don't have to check it on the way in to > be sure some bonehead didn't screw up the syntax. I would certainly appreciate it, if the read data are still checked for validity. And I think you're underestimating the kind of boneheads (like me), who is willing to use `sed` on MS Word documents (in desperate moments). > It also makes the > implementation a much simpler thing because there doesn't need to be a > parser. That's a valid point, although the syntax I imagine for a text based configuration file format is rather trivial to parse. If it wasn't trivial to parse, it would be likely to be difficult to write, which would loose the point of having text based configuration files. Jacob -- "Sleep is just a cheap substitute for coffee"