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

Okay, another crazy idea: period only has an indentation meaning ONLY if it's 
followed by tab or space.

Pros:
* Don't need to escape symbols beginning with "." (unless it's "." itself, 
which is a highly improbable first symbol on a line for a list).
* You can still use period to "draw" indentation levels in very long 
definitions or sub-clauses (which I admit is useful - and clever).
* No special "column 1" rule

Cons:
* Now period *HAS* to be followed by space/tab if it's to have its indentation 
meaning.  If you use 2+ space indenting that's no big deal, if you use 1-space 
indenting that's annoying.

Under this semantic, the previous example still works:
> define-syntax do-it
> .  syntax-rules ()
> .    group
> .      do-it
> .        x
> .      group x
> .    group
> .      do-it
> .        x
> .        body
> .        ...
> .      group begin
> .              x
> .              do-it
> .                body
> .                ...

--- 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