summaryrefslogtreecommitdiff
path: root/src/jvm/clojure/lang/ProxyHandler.java
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2010-06-15 23:13:05 -0400
committerRich Hickey <richhickey@gmail.com>2010-06-15 23:13:05 -0400
commit6ab3e4cd672092823a04c944210a23c29142785d (patch)
treef54d634e3fb26e623e21692879f4cd94f261e7fb /src/jvm/clojure/lang/ProxyHandler.java
parent8fbafa92faacb92a9bd49fa1e9b7e2c8c0747c07 (diff)
Unify numeric semantics around longs, with throw on overflow. Allow numeric literals to be primitive initializers. Canonicalize boxing of integers, if it fits in int, is Integer, else Long, thus primitive coercions can't be used to get particular boxed types, use Long/valueOf etc. Ask for BigIntegers if you want arbitrary precision, new literal number format - append 'N' for BigInteger. BigIntegers do not reduce automatically, are contagious. New particular names for unchecked ops - unchecked-xxx-int or unchecked-xxx-long. You should need far fewer hints for primitive perf, and avoid int casts and any casting of numeric literals, see:
http://gist.github.com/440102
Diffstat (limited to 'src/jvm/clojure/lang/ProxyHandler.java')
0 files changed, 0 insertions, 0 deletions