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

Given that types may define their own instances of Eq, the else clause might be reachable.


And the content of the first block may be unreachable all the time, depending on the implementation of Eq. But you probably have a number of issues to worry about if your implementation of Eq doesn't work for the identity case.


let nan = 0.0/0.0 in nan == nan




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: