<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Questions without answers in Errors</title>
<link>https://ask.clojure.org/index.php/unanswered/clojure/errors</link>
<description>Powered by Question2Answer</description>
<item>
<title>`(even? (range))` hangs</title>
<link>https://ask.clojure.org/index.php/14578/even-range-hangs</link>
<description>&lt;p&gt;It is, of course, an error to call &lt;code&gt;(even? (range))&lt;/code&gt;, but still - I&#039;d much rather prefer a class cast exception. Or the existing &lt;code&gt;IllegalArgumentException&lt;/code&gt;, just without printing the argument. Especially given that the argument could be absolutely anything, including side-effecting lazy collections.&lt;/p&gt;
&lt;p&gt;A couple of other cases like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(array-map (range))
(requiring-resolve (range))
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/14578/even-range-hangs</guid>
<pubDate>Sun, 08 Jun 2025 11:54:29 +0000</pubDate>
</item>
</channel>
</rss>