Follow

Oh wow, why can I do this Python?

>>> not not not not True
True

If I ever see something like this in real life I will scream

@robjloranger I would expect it to be possible in almost all programming languages. A compiler will optimise that out, but sure makes it harder to read.

@m3lt I know you can't do anything like this in Go, it just wouldn't build. And JS would throw an error. I wonder if Ruby or maybe bash allows it?

@robjloranger na, man.

Ruby allows not not true

JS even allows !!"true"

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!