5 ms·
Empty strings, lists and the number 0 are all truthy in Lua so this isn't an issue. Different languages have different semantics. Yes, using the or operator li
by cardanome 3y ago
Empty strings, lists and the number 0 are all truthy in Lua so this isn't an issue.
Different languages have different semantics. Yes, using the or operator like that is not a good idea in many languages but in Lua it is idiomatic.
- DemocracyFTW2 3y agopls see my other comment(s)