[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Thought experiment: what would you remove from Lua
- From: Axel Kittenberger <axkibe@...>
- Date: Thu, 2 Aug 2018 15:00:30 +0200
== true ...
I'll always cringe to that since beginners think an if _must_ have a comparison operator in it.
It is already boolean, no need to thest it again.
if process_the_data then
PS: Exception is when it explicitly checks it to be a boolean value at the same time, so 1 ought to be false..
Oh and this discussion is about removing not adding.