I said:
> So here's another rule idea, inspired by that approach.
> When doing indentation processing:
> 1. A "\ " at the beginning of the line (after whitespace) is ignored
> (recursively, so you can have several if you want them).
> 2. INSIDE a line, "\ " means "treat this as a line break,
> with the next line beginning at this same indentation level".
> 3. At the END of a line, "\" means "ignore the newline"; it
> basically merges the line with the next one & ignores indentation.

I just realized that this has a nice side-effect; you can create
single-line sequences when they make sense. E.G.:

define showstats()
  write a \ write b \ write c

Is the same as:

define showstats()
  write a
  write b
  write c

Which is the same as:
(define (showstats)
  (write a) (write b) (write c))

Hmm, that's convenient.  It's a lot like ";" as a statement
terminator or separator in ALGOL-descended languages
(like C and Pascal).  Useful when you have highly related
sets of short statements.

--- David A. Wheeler

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Readable-discuss mailing list

Reply via email to