[CTYP-75] More accurate Long arithmetic Created: 30/Sep/13 Updated: 20/Jul/14 Resolved: 20/Jul/14
|Reporter:||Chris Spencer||Assignee:||Ambrose Bonnaire-Sergeant|
The basic operations +*- do not autopromote, so it's safe to assume that an operation on Longs will remain a Long (or throw an exception)
|Comment by Chris Spencer [ 30/Sep/13 3:55 AM ]|
Attached better-arithmetic which supersedes the other patch. Adds better type preservation/inference for Longs and Doubles through arithmetic.
|Comment by Ambrose Bonnaire-Sergeant [ 20/Jul/14 11:11 PM ]|
Most ops now have Long/Double arities https://github.com/clojure/core.typed/blob/master/module-check/src/main/clojure/clojure/core/typed/base_env.clj#L1074