Not - lemm.ee

Alright, spicy opinion time: I think, the ! operator is dumb.

It’s yet another symbol with a meaning, which people have to learn.

And it’s easy to overlook, especially in languages with parentheses in their if-conditions:

if (!list.isEmpty()) { ... }

I think that just a .not() method on Booleans is cooler:

if (list.isEmpty().not()) { ... }

You can do this in Rust, which is where I have that idea from: play.rust-lang.org/?version=stable&mode=debug&edi…

Rust Playground

A browser interface to the Rust compiler to experiment with the language

We use ! because keyboards no longer have buttons for ¬, which is the other logical not.
My (ISO) keyboards do, under the Esc key. I guess you’re in North America (or Australia) and have an ANSI layout.
Ah, yep. I have very little knowledge of keyboards in other parts of the world, unfortunately.