Re: White-space sensitive file formats

[prev] [thread] [next] [lurker] [Date index for 2004/10/26]

From: Michael G Schwern
Subject: Re: White-space sensitive file formats
Date: 22:30 on 26 Oct 2004
On Tue, Oct 26, 2004 at 11:24:41AM +0100, David Cantrell wrote:
> Today I am mostly hating Makefiles, for they require the use of tabs and
> not spaces.

Speaking of crappy, archaic data formats, have a look at an Aegis change 
file that you're supposed to type in by hand.

  brief_description = "Create initial skeleton.";

  description = "A simple calculator using native \
  floating point precision.  \
  The four basic arithmetic operators to be provided, \
  using conventional infix notation.  \
  Parentheses and negation also required.";

  cause = internal_enhancement;

Yes, newlines have to be escaped a-la C strings.  And you need the trailing
semicolon even though there's no grammatic need for either.  The author says 
this is better because you get better error messages if you leave off an end 
quote.

*boggle*  That's right, its optimized for the error condition.

Its things like that why I've given up on Aegis.


-- 
Michael G Schwern        schwern@xxxxx.xxx  http://www.pobox.com/~schwern/
When you remove the barriers to changing things, you also remove the 
barriers to fixing what's broken.
        -- Dan Gillmor

Generated at 15:02 on 01 Nov 2004 by mariachi 0.52