12 ms·
Really? That'd be fantastic. Did I misunderstand this?
by herdrick 16y ago
Really? That'd be fantastic. Did I misunderstand this?
- peregrine 16y agoYes the annotations are purely optional.
- herdrick 16y agoRight, but the initial quote seemed to say that promoting to BigNums would no longer be automatic. But I may have misunderstood.
- richhickey 16y agoCorrect, promotion will no longer be automatic because the semantics of primitive and auto-promoting arithmetic can't be unified (on the JVM with no fixnums, the return types are disjoint). However, missing from the blog post and discussion here is the fact that, should there be overflow, an exception will be thrown. We are not adopting the silent error strategy of C/Java etc.