Re:Lua: Good, bad, and ugly parts
by vor_ on Saturday March 09, 2013 @08:07PM
(#5350238)
Obviously there are reasons for the behavior, but it's still inconsistent to users who are exposed to your scripting API to have:
Not a reason to avoid the language. But it may be a reason to consider an alternative with more conventional behavior.
[ Parent
| on HN ]
If you replace 1 with 2 this is an argument against using a vast number of languages, including Squirrel, I think. So maybe you're really saying that languages should forbid non-Boolean values in if statements. Maybe I agree with that.