On Jul 27, 2011, at 8:56 PM, Ken Wesson wrote:

>> In Clojure 1.2:
>> 
>> (type (bigint 2)) => java.math.BigInteger
>> 
>> In Clojure 1.3:
>> 
>> (type (bigint 2)) => clojure.lang.BigInt
>> (type 2N) => clojure.lang.BigInt
> 
> What the devil? Why was this done? Seems like wheel reinvention to me.

See http://dev.clojure.org/display/doc/Enhanced+Primitive+Support:

* BigInt provides hashcodes consistent with Long through the range of long
* BigInts will enable optimizations when [operations fit] in long (not yet 
implemented)

- Chas

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