On Sun, Oct 18, 2009 at 2:34 PM, Andrew Davey <
a.j....@gmail.com> wrote:
>
> I had an idea this weekend for creating XML expressions in Nemerle.
>
> def x = xml [html,
> [head, [title, "Test"]],
> [body,
> [p, @class="main", "Hello, World", [br], "test"],
> [ul, items.Map(i => xml [li, i])],
> [p, [a, href="#", "click here"]]
> ]
> ];
>
> A list literal is converted into something like XElement
> ("element_name", args...).
> "name = value" expressions are converted into XAttribute("name",
> value).
> Other embeded expressions works are inserted as-is.
>
over any other encoding of xml literals... even strings.
BTW. are you really going to insert lots of xml literals inside your code?