[plt-scheme] using xml syntax for programming in scheme

From: hendrik at topoi.pooq.com (hendrik at topoi.pooq.com)
Date: Thu Jun 21 19:20:31 EDT 2007

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;
>    <*>&#8;&c;
>    </*>
>  </+>
> </lambda>

That's the funniest thing I've seen for a while!

-- hendrik


Posted on the users mailing list.