<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Lisp labels and anonymous functions</title>
	<atom:link href="http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/</link>
	<description>Programming Ruby / JRuby / Rails / Common Lisp by Christopher Bertels</description>
	<lastBuildDate>Sat, 11 Sep 2010 23:34:51 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mek</title>
		<link>http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/comment-page-1/#comment-4938</link>
		<dc:creator>Mek</dc:creator>
		<pubDate>Sat, 11 Sep 2010 23:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.adztec-independent.de/?p=79#comment-4938</guid>
		<description>Or (endp lst), or (not (listp lst))</description>
		<content:encoded><![CDATA[<p>Or (endp lst), or (not (listp lst))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foo</title>
		<link>http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/comment-page-1/#comment-19</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Tue, 16 Dec 2008 11:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.adztec-independent.de/?p=79#comment-19</guid>
		<description>CAR and CDR return NIL for NIL. But that&#039;s not what you want.

See (car &#039;(nil)) and (car &#039;()) . Both return nil.

The usual check for list recursion is (null list), then take things apart.</description>
		<content:encoded><![CDATA[<p>CAR and CDR return NIL for NIL. But that&#8217;s not what you want.</p>
<p>See (car &#8216;(nil)) and (car &#8216;()) . Both return nil.</p>
<p>The usual check for list recursion is (null list), then take things apart.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/comment-page-1/#comment-17</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Tue, 16 Dec 2008 10:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.adztec-independent.de/?p=79#comment-17</guid>
		<description>oh yeah true, it&#039;s a special operator.
i read about it in &quot;Practical Common Lisp&quot; by Peter Seibel.
About checking the list first: good remark, but as it seems, it doesnt fail with an empty list, since car and cdr don&#039;t either. maybe this is only in sbcl? does it fail in other implementations?
of course, it still would be better to check that first, since it is better and more robust code.</description>
		<content:encoded><![CDATA[<p>oh yeah true, it&#8217;s a special operator.<br />
i read about it in &#8220;Practical Common Lisp&#8221; by Peter Seibel.<br />
About checking the list first: good remark, but as it seems, it doesnt fail with an empty list, since car and cdr don&#8217;t either. maybe this is only in sbcl? does it fail in other implementations?<br />
of course, it still would be better to check that first, since it is better and more robust code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foo</title>
		<link>http://www.adztec-independent.de/2008/12/lisp-labels-and-anonymous-functions/comment-page-1/#comment-14</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Tue, 16 Dec 2008 09:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.adztec-independent.de/?p=79#comment-14</guid>
		<description>a few remarks:

LABELS is not a macro, but a built-in special operator.

Common Lisp has also FIRST, REST and IF.

You should test the list for elements with NULL before taking FIRST and REST (CAR and CDR in your case).

So, the function should look a bit different.</description>
		<content:encoded><![CDATA[<p>a few remarks:</p>
<p>LABELS is not a macro, but a built-in special operator.</p>
<p>Common Lisp has also FIRST, REST and IF.</p>
<p>You should test the list for elements with NULL before taking FIRST and REST (CAR and CDR in your case).</p>
<p>So, the function should look a bit different.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

