[plt-scheme] using xml syntax for programming in scheme
On Thu, Jun 21, 2007 at 01:33:37PM -0500, Corey Sweeney wrote:
> I had a idea. If some people think that XML is a easier syntax (which
> I disagree with, but whatever), then they might like to use XML syntax
> in programming. (especially since everyone already understands the
> syntax from doing web pages.)
>
> I tried it, and here's what I got:
>
> I used: (display-xml/content (xexpr->xml exp))
>
> and (lambda (c d) (+ d (* 8 c)))
>
> becomes:
> <lambda>
> <c>&d;
> </c>
> <+>&d;
> <*>&c;
> </*>
> </+>
> </lambda>
That's the funniest thing I've seen for a while!
-- hendrik