[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Ternary operator patch
- From: Geoff Leyland <geoff_leyland@...>
- Date: Fri, 10 Sep 2010 18:15:09 +1200
On 10/09/2010, at 6:11 PM, steve donovan wrote:
> On Fri, Sep 10, 2010 at 7:59 AM, Henk Boom <firstname.lastname@example.org> wrote:
>> This doesn't work when it's possible for good() to return false or nil
> This is true, and I've been bitten by this one before.
> a = x == y and (good() or true) or bad()
Does that still work if you want the false or nil from good()?