lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jul 25, 2016 at 5:42 PM, Doug Currie <doug.currie@gmail.com> wrote:
> condition expression with a comparison operator or a boolean variable.
> Otherwise the intention is not clear. Use strong typing, avoid automatic
> conversions!

Increasingly I'm tending that way - the amount of magic that can be
crammed into a simple if is worrying.  One thing which would
definitely be a misfeature would be a _bool metamethod. In languages
with value types like C++ bool conversion has its uses, but C++ is not
a good influence on other languages.