Hacker News new | past | comments | ask | show | jobs | submit login

>where booleans cannot be compared

Sounds like a way to make XOR be a big pain.

Or do you only want to ban comparing to literals? It can make things clearer to write something like "if bool==false" rather than "if not bool", especially when double negatives get involved.

Only ban comparing to literal true? Sure, go for it. But then the language is more complex for no real benefit.




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

Search: