5 ms·
Nil and false are both not truth. It's also just a leaving c conventions, which state anything not 0 is true (& 0XFFFF!= 0) be praised has been expanded to ridu
by FreshStart 3y ago
Nil and false are both not truth. It's also just a leaving c conventions, which state anything not 0 is true (& 0XFFFF!= 0) be praised has been expanded to ridulous levels.
The merge of existence checks and boolean operations in the same operator is wrong.
- 1attice 3y agoYes, I knew this, and it's beside the point. Which is that, despite loving Lua, I can recognize that it features several 'improvements' which are going to cause Surprise for a lot of coders. Which is bad, following the Law of Least Surprise. Personally, I agree with you, but I can also see why Lua initially turns a lot of people off; it took a good year of meeting it in my Neovim config before I accepted that it wasn't some horrible corruption of JavaScript. Now I tend to think of Lua as an improvement over JavaScript: spare, elegant, and almost perfect. But I remember that first year, and I can still empathize with people in their first year of Lua.