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

Yes, several people have already piled on. But if the compiler didn't say "Equal", then I would be claim it's confusing/inconsistent.

Are you saying that the funtion YOU wrote to convert C/D to a bool shouldn't be invoked when YOU are using C/D as booleans?



It's perfectly logical to use those functions when comparing them as booleans.

But it's confusing that they're being used as booleans at all. They're converted because it will let the types match even though the conversion doesn't make much sense.




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

Search: