On Jun 20, 2010, at 17:57 , Nicolas Oury wrote:
> With what I think is 1.2-MASTER, a few weeks old (I start to be a bit lost 
> with many clojure.jar):
> 
> user=> (loop [i (long 1)] (recur :a))
> #<CompilerException java.lang.RuntimeException: 
> java.lang.IllegalArgumentException: recur arg for primitive local: i must be 
> matching primitive (NO_SOURCE_FILE:2)>
> 
> There is static typing for primitive already. (And I think it has been like 
> that since a long time). It is what allows clojure to java-like fast on hot 
> loops.
> The new problem, as far as I understand it, is that, if literals are 
> primitives, my snippset is equivalent to 
>  (loop [i 1] (recur :a))

Yes the different being in my eyes is the change from explicit (as in type 
hints or direct casts) to implicit (as in just since there is 1) typing.

Regards,
Heinz

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to