Hi,

Am Mittwoch, 7. September 2011 15:21:23 UTC+2 schrieb Stefan Kamphausen:
>
>
> user=> (* 1000000000000000000 1000000000000000000)
> 1000000000000000000000000000000000000
>
> in 1.3.0 (MASTER a few days ago)
> user=> (* 1000000000000000000 1000000000000000000)
> ArithmeticException integer overflow  clojure.lang.Numbers.throwIntOverflow 
> (Numbers.java:1374)
>
> Yes, I understand that this is a rare/corner case and that the overall gain 
> may be worth it.  And I only followed that long discussion without really 
> trying it out for myself.
>
>
Yeah. But that is not less "safe", no? Just overflowing the long is not 
safe. Throwing an exception is perfectly safe. The exception can be caught 
and handled.

See also here: http://groups.google.com/group/clojure/msg/6e987f49d54db3d4

Sincerely
Meikel

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