Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vor_
on March 10, 2013
|
parent
|
context
|
favorite
| on:
Lua: Good, bad, and ugly parts
It's also not true:
> if 0 then print "true" end true > 0 == true => false
I know
why
this is the case. But it's a logical inconsistency for users of the language.
ufo
on March 10, 2013
[–]
Stop trolling please. You are advocating for `==` doing type coercion of arguments and that is almost always a misfeature in any language that has that (and the fix usually involves adding an ugly `===` operator after the fact)
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: