What is the intended difference between type hinting like "^long" and
type coercing like "(long arg)"?

For example my gut feeling for this case is to use ^long but it is forbidden:

(loop [^long x 0]
...)

"Can't type hint a local with a primitive initializer"

So I use

(loop [x (long 0)]
...)

But not quite sure if it's right.

-- 
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