<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for On Clojure</title>
	<atom:link href="http://onclojure.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://onclojure.com</link>
	<description>A blog about everything Clojure</description>
	<lastBuildDate>Sat, 06 Mar 2010 22:25:19 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Pre- and post-conditions: a quest for a nicer syntax by zahardzhan</title>
		<link>http://onclojure.com/2010/03/05/pre-and-post-conditions-a-quest-for-a-nicer-syntax/#comment-84</link>
		<dc:creator>zahardzhan</dc:creator>
		<pubDate>Sat, 06 Mar 2010 22:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=104#comment-84</guid>
		<description>&quot;Destructuring&quot; can be used like this, with [(automaticaly generated anonymous functions here %)]

(n
:is [pos? integer? (or (&gt; 10 %) (&lt; 5 %))] 
:is [neg? float?] ;; other :is act like or-clauses
:is [zero? double?]
:is (identical? 3 %)
:is number?
:type String ;; type declaration for optimization
:ignore ;; like in Common Lisp
:or 0) ;; when checking failed set n to 0

And, i think there must be way to write predicates without []-parens around.

You may try to read some code in my post in russian - there so few lines of code.</description>
		<content:encoded><![CDATA[<p>&#8220;Destructuring&#8221; can be used like this, with [(automaticaly generated anonymous functions here %)]</p>
<p>(n<br />
:is [pos? integer? (or (&gt; 10 %) (&lt; 5 %))]<br />
:is [neg? float?] ;; other :is act like or-clauses<br />
:is [zero? double?]<br />
:is (identical? 3 %)<br />
:is number?<br />
:type String ;; type declaration for optimization<br />
:ignore ;; like in Common Lisp<br />
 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> r 0) ;; when checking failed set n to 0</p>
<p>And, i think there must be way to write predicates without []-parens around.</p>
<p>You may try to read some code in my post in russian &#8211; there so few lines of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pre- and post-conditions: a quest for a nicer syntax by khinsen</title>
		<link>http://onclojure.com/2010/03/05/pre-and-post-conditions-a-quest-for-a-nicer-syntax/#comment-83</link>
		<dc:creator>khinsen</dc:creator>
		<pubDate>Sat, 06 Mar 2010 17:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=104#comment-83</guid>
		<description>With your parenthesis-free syntax, how do you handle conditions that need parameters? As I see it, you&#039;d have to define an anonymous literal each time.

Concerning your post about function combinators, my Russian isn&#039;t quite up to it I am afraid!</description>
		<content:encoded><![CDATA[<p>With your parenthesis-free syntax, how do you handle conditions that need parameters? As I see it, you&#8217;d have to define an anonymous literal each time.</p>
<p>Concerning your post about function combinators, my Russian isn&#8217;t quite up to it I am afraid!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pre- and post-conditions: a quest for a nicer syntax by bsteuber</title>
		<link>http://onclojure.com/2010/03/05/pre-and-post-conditions-a-quest-for-a-nicer-syntax/#comment-81</link>
		<dc:creator>bsteuber</dc:creator>
		<pubDate>Sat, 06 Mar 2010 09:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=104#comment-81</guid>
		<description>I like that =)

(And I prefer the &quot;parenthetic&quot; version)</description>
		<content:encoded><![CDATA[<p>I like that =)</p>
<p>(And I prefer the &#8220;parenthetic&#8221; version)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pre- and post-conditions: a quest for a nicer syntax by zahardzhan</title>
		<link>http://onclojure.com/2010/03/05/pre-and-post-conditions-a-quest-for-a-nicer-syntax/#comment-80</link>
		<dc:creator>zahardzhan</dc:creator>
		<pubDate>Sat, 06 Mar 2010 03:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=104#comment-80</guid>
		<description>Or it&#039;s better to add some sort of &#039;destructuring&#039; for variables http://gist.github.com/323481

(defn (power :is number? :or #(throw &#039;Bad-input))
[(x :is number?)
(y :is [pos? integer?])
(n :is [pos? integer?] :is [neg? float?] :is [zero? double?] :or false)]
(/ x 0))</description>
		<content:encoded><![CDATA[<p>Or it&#8217;s better to add some sort of &#8216;destructuring&#8217; for variables <a href="http://gist.github.com/323481" rel="nofollow">http://gist.github.com/323481</a></p>
<p>(defn (power :is number? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> r #(throw &#8216;Bad-input))<br />
[(x :is number?)<br />
(y :is [pos? integer?])<br />
(n :is [pos? integer?] :is [neg? float?] :is [zero? double?] <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> r false)]<br />
(/ x 0))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pre- and post-conditions: a quest for a nicer syntax by zahardzhan</title>
		<link>http://onclojure.com/2010/03/05/pre-and-post-conditions-a-quest-for-a-nicer-syntax/#comment-79</link>
		<dc:creator>zahardzhan</dc:creator>
		<pubDate>Sat, 06 Mar 2010 03:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=104#comment-79</guid>
		<description>I write a post about fn/and and fn/or function combinators http://zahardzhan.posterous.com/-fnand-fnor-fnnot
Pre and post conditions is full of implicit fn/and. What do you think about it?

And, also, there are toooo much parenthesis in your syntax. It should be something like that:
(defn power :is number?
  [x :is number?
   y :is (pos? integer?)
   n :is (or (pos? integer?)
             (neg? float?))]
  (apply * (repeat n x)))</description>
		<content:encoded><![CDATA[<p>I write a post about fn/and and fn/or function combinators <a href="http://zahardzhan.posterous.com/-fnand-fnor-fnnot" rel="nofollow">http://zahardzhan.posterous.com/-fnand-fnor-fnnot</a><br />
Pre and post conditions is full of implicit fn/and. What do you think about it?</p>
<p>And, also, there are toooo much parenthesis in your syntax. It should be something like that:<br />
(defn power :is number?<br />
  [x :is number?<br />
   y :is (pos? integer?)<br />
   n :is (or (pos? integer?)<br />
             (neg? float?))]<br />
  (apply * (repeat n x)))</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Anonymous function literals and syntax-quote don&#8217;t work well together by khinsen</title>
		<link>http://onclojure.com/2010/03/01/anonymous-function-literals-and-syntax-quote-dont-work-well-together/#comment-77</link>
		<dc:creator>khinsen</dc:creator>
		<pubDate>Mon, 01 Mar 2010 15:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=99#comment-77</guid>
		<description>When I discovered this problem, my first idea was to find a fix and propose it for inclusion in Clojure. But I didn&#039;t find any, so I wrote this post as a kind of public warning.

However, Rich Hickey, Clojure&#039;s creator, did find a fix, and applied it immediately. If you work with the master branch of Clojure&#039;s github repository and pull in today&#039;s changes, the code in the example will work just fine. This may be the quickest fix of something never reported as a bug!

So what&#039;s the trick? Clojure now appends &lt;code&gt;#&lt;/code&gt; to the function argument symbols in expanded function literals. Syntax-quote treats such symbols specially, replacing them by guaranteed-to-be-unique generated symbols, which moreover are not namespace-qualified. Problem solved.</description>
		<content:encoded><![CDATA[<p>When I discovered this problem, my first idea was to find a fix and propose it for inclusion in Clojure. But I didn&#8217;t find any, so I wrote this post as a kind of public warning.</p>
<p>However, Rich Hickey, Clojure&#8217;s creator, did find a fix, and applied it immediately. If you work with the master branch of Clojure&#8217;s github repository and pull in today&#8217;s changes, the code in the example will work just fine. This may be the quickest fix of something never reported as a bug!</p>
<p>So what&#8217;s the trick? Clojure now appends <code>#</code> to the function argument symbols in expanded function literals. Syntax-quote treats such symbols specially, replacing them by guaranteed-to-be-unique generated symbols, which moreover are not namespace-qualified. Problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generating deftype forms in macros by John</title>
		<link>http://onclojure.com/2010/02/23/generating-deftype-forms-in-macros/#comment-76</link>
		<dc:creator>John</dc:creator>
		<pubDate>Wed, 24 Feb 2010 00:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=86#comment-76</guid>
		<description>The thing I don&#039;t like about syntax-quote (versus quote) is that it makes the expanded code verbose and unreadable. Then it&#039;s hard to debug the macro with macroexpand-1.</description>
		<content:encoded><![CDATA[<p>The thing I don&#8217;t like about syntax-quote (versus quote) is that it makes the expanded code verbose and unreadable. Then it&#8217;s hard to debug the macro with macroexpand-1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Managing namespaces by khinsen</title>
		<link>http://onclojure.com/2010/02/17/managing-namespaces/#comment-75</link>
		<dc:creator>khinsen</dc:creator>
		<pubDate>Thu, 18 Feb 2010 10:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=80#comment-75</guid>
		<description>There&#039;s already remove-ns. Combine this with in-ns, and you get the equivalent of emptying a namespace, except that the namespace object changes, rendering aliases invalid.

But... what would you use this for in practice? The only namespace I ever wanted to reset is &quot;user&quot;, from the REPL. But it&#039;s just as easy to make a new one instead.</description>
		<content:encoded><![CDATA[<p>There&#8217;s already remove-ns. Combine this with in-ns, and you get the equivalent of emptying a namespace, except that the namespace object changes, rendering aliases invalid.</p>
<p>But&#8230; what would you use this for in practice? The only namespace I ever wanted to reset is &#8220;user&#8221;, from the REPL. But it&#8217;s just as easy to make a new one instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Managing namespaces by khinsen</title>
		<link>http://onclojure.com/2010/02/17/managing-namespaces/#comment-74</link>
		<dc:creator>khinsen</dc:creator>
		<pubDate>Thu, 18 Feb 2010 10:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=80#comment-74</guid>
		<description>If modifying the behaviour of the compiler is an option, then it would be sufficient to allow redefining a symbol that currently points to a var in another namespace.

I am not sure if that&#039;s a good idea though. At least at the REPL level, I like the error message that prevents me from overwriting something accidentally. Perhaps the default behaviour should differ between the REPL and loading from a file.</description>
		<content:encoded><![CDATA[<p>If modifying the behaviour of the compiler is an option, then it would be sufficient to allow redefining a symbol that currently points to a var in another namespace.</p>
<p>I am not sure if that&#8217;s a good idea though. At least at the REPL level, I like the error message that prevents me from overwriting something accidentally. Perhaps the default behaviour should differ between the REPL and loading from a file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Managing namespaces by Stuart Halloway</title>
		<link>http://onclojure.com/2010/02/17/managing-namespaces/#comment-73</link>
		<dc:creator>Stuart Halloway</dc:creator>
		<pubDate>Thu, 18 Feb 2010 08:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://onclojure.com/?p=80#comment-73</guid>
		<description>I created a ticket for this: http://www.assembla.com/spaces/clojure/tickets/272-load-ns-require-use-overhaul and will bring it up on the dev list.</description>
		<content:encoded><![CDATA[<p>I created a ticket for this: <a href="http://www.assembla.com/spaces/clojure/tickets/272-load-ns-require-use-overhaul" rel="nofollow">http://www.assembla.com/spaces/clojure/tickets/272-load-ns-require-use-overhaul</a> and will bring it up on the dev list.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
