[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 25 Jul 2016 17:48:22 +0200
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.