<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.1.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: A simple scheme unittest DSL</title>
	<link>http://phildawes.net/blog/2007/05/23/a-simple-scheme-unittest-dsl/</link>
	<description>Mostly programming with a few bits of other stuff</description>
	<pubDate>Tue, 07 Oct 2008 07:56:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.1</generator>

	<item>
		<title>By: Nat</title>
		<link>http://phildawes.net/blog/2007/05/23/a-simple-scheme-unittest-dsl/#comment-33053</link>
		<author>Nat</author>
		<pubDate>Wed, 23 May 2007 19:03:23 +0000</pubDate>
		<guid>http://phildawes.net/blog/2007/05/23/a-simple-scheme-unittest-dsl/#comment-33053</guid>
					<description>Wouldn't a really Scheme-y macro rewrite the tests to use call/cc to pass the continuation into the test function and rewrite the asserts to call the continuation to jump out of the test when the assert failed?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t a really Scheme-y macro rewrite the tests to use call/cc to pass the continuation into the test function and rewrite the asserts to call the continuation to jump out of the test when the assert failed?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Phil Dawes</title>
		<link>http://phildawes.net/blog/2007/05/23/a-simple-scheme-unittest-dsl/#comment-33112</link>
		<author>Phil Dawes</author>
		<pubDate>Thu, 24 May 2007 10:49:41 +0000</pubDate>
		<guid>http://phildawes.net/blog/2007/05/23/a-simple-scheme-unittest-dsl/#comment-33112</guid>
					<description>Hi Nat,

Actually using continuations was the original plan but it turned out to be more tricky than I'd expected because of syntax-rules macro hygiene.

The problem is that the inner assert macro can't just use the symbol for the continuation because it gets masked, so IIRC the outer macro needs to traverse the code re-writing the assert calls to include the continuation as an argument - it was doing that where I came a bit unstuck and switched to the exception hack.
Hmmm... maybe I should revisit this.</description>
		<content:encoded><![CDATA[<p>Hi Nat,</p>
<p>Actually using continuations was the original plan but it turned out to be more tricky than I&#8217;d expected because of syntax-rules macro hygiene.</p>
<p>The problem is that the inner assert macro can&#8217;t just use the symbol for the continuation because it gets masked, so IIRC the outer macro needs to traverse the code re-writing the assert calls to include the continuation as an argument - it was doing that where I came a bit unstuck and switched to the exception hack.<br />
Hmmm&#8230; maybe I should revisit this.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
