lua-users home
lua-l archive

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


> On 3 Oct 2019, at 23.57, Roberto Ierusalimschy <roberto@inf.puc-rio.br> 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.

Petri