Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Ted Leung on the air: Open Source, Java, Python, and ...
Mon, 18 Aug 2003
Macro quickies
Phil Windley writes about Phil Wadler's The Essence of XML:
[02:21] |
[computers/programming/lisp] |
# |
TB |
F |
G |
2 Comments |
Of course, as Phil points out, LISP s-expressions have both of these properties. This doesn't necessarily imply that s-expressions would be a good substitute for XML. One of XML's great features is that its parsers work as interpreters rather than being compiled. That is, they update their syntax on the fly as they work rather than having a syntax compiled in, as is the case with s-expressions or other representationsI think that macros (and if need be, reader macros) would allow s-expressions to do most of what is needed here. Joey Gibson has discovered that Lisp Macros Are Very Cool. Wait till he sees some of the cool stuff in R5RS...
Ah, but I have discovered R5RS, but then I decided I liked it's older brother better. Seriously, I've played with Scheme, but it didn't really excite me; I can't really explain why. Lisp just feels right, and I'm really digging it. I will say that the DrScheme environment is pretty slick.
Posted by Joey Gibson at Mon Aug 18 18:34:29 2003
Posted by Joey Gibson at Mon Aug 18 18:34:29 2003
I was mostly thinking of the macro system when I made my comment. The minimalist nature of Scheme would not be a problem if there was an extensive and ubiquitous set of libraries. Some progress is being made on this front.
Posted by Ted Leung at Mon Aug 18 21:48:53 2003
Posted by Ted Leung at Mon Aug 18 21:48:53 2003
You can subscribe to an RSS feed of the comments for this blog:
Add a comment here:
You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are:
<a href>
, <em>
, <i>
, <b>
, <blockquote>
, <br/>
, <p>
, <code>
, <pre>
, <cite>
, <sub>
and <sup>
.You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk