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,7624df5e57d09688 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-11 06:09:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: config files proposal Date: 11 Jun 2002 06:09:57 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0206110509.2a7c3d7c@posting.google.com> References: <3D03E1AD.80EB805D@san.rr.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023800997 12938 127.0.0.1 (11 Jun 2002 13:09:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Jun 2002 13:09:57 GMT Xref: archiver1.google.com comp.lang.ada:25736 Date: 2002-06-11T13:09:57+00:00 List-Id: Darren New wrote in message news:<3D03E1AD.80EB805D@san.rr.com>... > Stephen Leake wrote: > > > Configuration tasks are simpler if the config file is commented and > > > handling comments is difficult if you use an API call to write to > > > the file. > > > > Good point; I hadn't thought of that. > > > > I think this makes XML a better idea; we can allow for a "comment" tag > > that is saved in the memory image, and written back out. > > Or simply allow an association of a comment string with each config value. > It gets filled in when read, or left out when written. It doesn't take XML > to do this. > > -- This is comment one > key1=value1 > -- This is comment two > key2=value2 True, but it complicates the parsing code significantly, while XML could handle it easily with some kind of attribute-comment tag. What you essentially have here is another attribute. One of my 2 things I said we'd have to require out of the config language to make XML a good idea was multiple tags per key. (The other was nested keys). -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html