Re: about 'fail'
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: about 'fail'
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Tue, 8 Oct 2019 16:10:05 -0300
On 2019年10月08日 10:04 a.m., Roberto Ierusalimschy wrote:
> >Any function where you have to distinguish between nil and false in the
> >return value seems a very bad idea. The standard library always avoided
> >that, and will continue to do so.
> >
> >-- Roberto
> >
> next({[false]=true})?
You are right. This function is in Lua since version 1.0. It probably
would have a different API today. (It also spoiled the generic for.)
-- Roberto
Would it be time to start looking to a Lua 6?