[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.4.0 (beta) now available
- From: Petri Häkkinen <petrih3@...>
- Date: Mon, 7 Oct 2019 22:47:40 +0300
> On 3 Oct 2019, at 23.57, Roberto Ierusalimschy <email@example.com> wrote:
> So, the motivation for the change is to move our minds from the
> concept that errors return (nil,msg) to the concept that errors return
> (falsy,msg). Maybe one day in the distant future we might change
> that falsy to false instead of nil.
I’m sorry but I fail to see any improvement here. How does false signal an error any better than nil? This change of a well established idiom will only introduce inconsistency between old and new code I’m afraid.