In https://sourceforge.net/p/readable/wiki/Current/
you correctly pointed out that "." as indentation whitespace causes problems 
with symbols like "..." in Scheme.

HOWEVER, perhaps there's a much simpler approach: period only has an 
indentation meaning in column 1.  Then the example could look like this:

define-syntax do-it
.  syntax-rules ()
.    group
.      do-it
.        x
.      group x
.    group
.      do-it
.        x
.        body
.        ...
.      group begin
.              x
.              do-it
.                body
.                ...

Pros:
  * You don't need to escape symbols that begin with period (e.g., ...) unless 
they're in column 1.  I think that's a lot less common; minimizing the need for 
escapes is a good thing.
  * People who want only whitespace indentation, or period indentation, can 
quickly switch.
Cons:
 * Now you REALLY can't use periods to "emphasize" something.  I don't mind 
that loss, I know you thought that interesting.

A variant could be that periods only have the indentation meaning until the 
first non-period.  Then this is valid:
...   body
...   ...

As silly as the period-as-indentation rule appeared to me at first, it's sortof 
growing on me.  Maybe we should keep some variant of it.

--- David A. Wheeler

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to