On Tue, Feb 1, 2011 at 7:12 PM, Jules <jules_gosn...@yahoo.com> wrote:
> Clojure 1.2.0
> user=> (type 0)
> java.lang.Integer
> user=> (type (int 0))
> java.lang.Integer
> user=>
>
> but
>
> Clojure 1.3.0-alpha4
> user=> (type 0)
> java.lang.Long
> user=> (type (int 0))
> java.lang.Long
>
> apologies if this is a known issue ...

As you can see, the default type for integer literals has changed from
Integer to Long with 1.3. I have my misgivings about this change,
since 64-bit arithmetic is slower on 32-bit hardware than 32-bit
arithmetic and there doesn't seem to be any way in 1.3 to do 32-bit
integer arithmetic short of doing the arithmetic in Java.

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