[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XML as a transition to s-expr

> Ok, then why not use indent to your advantage as python and haskell do.
> Here is an even simpler version (no parens at all!):
>    table :cellpadding "0" :cellspacing "0"
>      tr
>        td :width "50%" "Cell one"
>        td :width "50%" "Cell two"
> Program in outline mode.  Functions only consume what is on their own line
> or indendted on another.  It is easier to process (just read it
> backwards).
> Equivalent to parse.  But, the important point is  for the user it is
> more readable, easier to type, and very amenable to using emacs or an
> outliner as your editor.

I don't think this is a very good idea.  Indentation alone works ok with
Python code, but it becomes much more problematic when text is involved.
Imagine that the content of each cell is a paragraph...

- Christopher