On Fri, Feb 21, 2003 at 12:11:14AM +0100 I heard the voice of
Richard Levitte via RT, and lo! it spake thus:
> 
> I like the configuration checking mode!  It's applied.

Cool   8-)
It's saved my bacon more than once when I did something stupid like
forgetting a " in the middle of the config file...


> I also took a look at the comma-separated tokens patch, but didn't like
> it.  I'd prefer if the syntax was like this:
> 
>     "foo","bar"   "value"
> 
> I understand that it's more challenging to make it that way, since that
> requires some hackery in gram.y.  I'll ponder over this, but if you
> want to work on it in that direction, I'm willing to look at an updated
> patch.

Hm.  Let me take a little stream-of-consciousness wander on this...

First off, it doesn't matter _that_ much to me.  I Got Mine (tm) so to
speak; my goal was to be able to have Netscape (4.x), AND Mozilla, AND
Opera, AND occasionally other browsers, just all be lumped together in
one "Web Browsers" icon manager.  It works, I'm happy.

Now, going beyond that; I can certainly see how it's perhaps a bit hairy;
what if your window class had a ',' in it?  Bad style, IMO, but it can
happen.  I have stylistic issues with the syntax you listed, though.  The
big thing is that a line is a set of atoms, seperated by whitespace.
Each atom is enclosed with "'s.  Beyond that, the parser doesn't care.
Now, you're making one of the atoms also consist of atoms seperated by
,'s.  You're breaking the "Zero, One, Many" rule; why 2 levels of
delineation?  Why can't I (generic 'I') do 3, or 8?  At that point,
you're almost getting to the point where you would prefer something like
XML or Lisp-type S-expressions (hmmm....   8-).

Now, all THAT aside, I can't say I really have a better idea than a list
of comma-seperated elements in a list being an atom of a set of
space-seperated elements in a list, that wouldn't require more massive
re-working.  It might give me a good excuse to finally break down and
really learn yacc.  Whether I'll actually have time to really look into
it, certainly before 3.7 is cut, is another matter entirely...


-- 
Matthew Fuller     (MF4839)   |  [EMAIL PROTECTED]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/

"The only reason I'm burning my candle at both ends, is because I
      haven't figured out how to light the middle yet"

Reply via email to