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

Re: XML as a transition to s-expr



Scott McKay writes
> 
> Common Lisp already has a syntax for named parameters.  Lisp hacks
> like this for generating HTML are common.
> 
> (table (:cellpadding "0" :cellspacing "0")
>    (tr ()
>      (td (:width "50%")
>        "Cell one")
>      (td (:width "50%")
>        "Cell two")))

There are some unnecessary parens here.  I submit that
s-expression is as much about ruthlessly avoiding
unneeded parens as about using them when needed.  

(table :cellpadding "0" :cellspacing "0"
       (tr 
         (td :width "50%"
             "Cell one")
         (td :width "50%"
             "Cell two")))

--d