[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re :Will operator '==' support fulluserdata and number or nil or false
- From: Dennis Fischer <darkwiiplayer@...>
- Date: Mon, 25 Feb 2019 13:06:24 +0000
Glück auf!
In my opinion it would mostly break Luas design; that is, its simplicity. There's lots of languages like Ruby that add an exception or a feature for anything that seems mildly annoying to do as a function instead, and those languages often end up feeling bloated and hard to learn. Lua has kept itself far away from this sort of feature-creep, and it's the main reason I use it in the first place.
Also consider that allowing to override `==` just shifts the problem by one position; now you can have `nil == my_variable` be true, but `if my_variable` still treating it as truthy, because it's not `nil` (but only *equal* to it).
PS: It's 2019, why does email still use HTML+CSS instead of markdown?!