Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The compile-time version will hang a Clojure REPL, too:

user=> (def d 2.2250738585072012e-308)



makes sense, same thing in scala:

Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22). Type in expressions to have them evaluated. Type :help for more information.

scala> 2.2250738585072012e-308

(infinite loop)


Tried it in Jython too, of course it fails. I'd have been more surprised if it worked, but it's still amusing and had to see it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: