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

So shall we require checking for matching type of first? It doesn't seem like an improvement to me.


Should a list ever equal seven? Should a float equal a socket? Some comparisons just don't make sense.


> Should a list ever equal seven? Should a float equal a socket?

No.

> Some comparisons just don't make sense.

The comparison makes enough sense to me to determine the result.


Even if the result makes some kind of sense, 99% of the time it will be an error in programming and therefore not be useful or safe to continue.




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

Search: