DEV Community

Discussion on: NOT NOT (!!)

Collapse
juyn profile image
Xavier Dubois 🇫🇷

We have the same behavior in PHP. I really dislike this syntax.
It's unclear and you have to think too much in order to get what the developer meant.

Also, KISS ! It should be simple, and if you want a Boolean, simply cast it to a Boolean using the dedicated methods