Re: Representing whole XML documents
John Cowan 18 Nov 2012 21:16 UTC
Per Bothner scripsit:
> Seems like a good idea. However, this seems a place where keywords would
> be preferable:
>
> #&xml{version: 1.1 encoding: "UTF-8" standalone: #t
> doctype: "HTML"
> public: "-//W3C//DTD HTML 4.01 Transitional//EN"
> #<!--comment-->
> #<html>...</>
> }
Well, that trades off ease of use for ease of implementation. The
whole advantage of the XML syntax is that you can just paste snippets
of XML into your Scheme. With this syntax, you can paste whole XML
documents.
--
John Cowan http://ccil.org/~cowan xxxxxx@ccil.org
All "isms" should be "wasms". --Abbie