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

Do you mean Haskell? because its compiler is very advanced and does complex optimizations.


It's semantically well-defined, though. The compiler will never change the value of your result, it will only discover more efficient ways to compute it.


I didn't have a particular language in mind. Though Haskell is certainly a fine choice.


Haskell allows plenty of undefined behaviour! unsafePerformIO, unsafeCoerce, the FFI, even something as simple as unchecked arithmetic can cause it.




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

Search: