2 ms·
Lua's not equals `~=` gets ligatured to ≃ instead of ≠. Expected but unfortunate.
by jobigoud 10y ago
Lua's not equals `~=` gets ligatured to ≃ instead of ≠. Expected but unfortunate.
- abeyer 10y agoMost of Lua was nicely obvious and intuitive, but ~= was always one of the weird sharp edges. I could maybe see the argument for using it if ~ was already a negation operator of some sort (like C's bitwise complement) but Lua doesn't even have that. Instead you get something needlessly non-intuitive and subject to misinterpretation by anyone who isn't a Lua native, as ~= as an ASCIIfication of ≃ is pretty common.