[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha-rc2) now available
- From: Rodrigo Azevedo <rodrigoams@...>
- Date: Wed, 12 Jun 2019 16:24:30 -0300
Em qua, 12 de jun de 2019 às 15:45, nobody
<nobody+lua-list@afra-berlin.de> escreveu:
>
> On 12/06/2019 19.33, Coda Highland wrote:
> >
> >
> > On Wed, Jun 12, 2019 at 12:28 PM Andrew Gierth
> > <andrew@tao11.riddles.org.uk <mailto:andrew@tao11.riddles.org.uk>> wrote:
> >
> > Egor suggested <resource>. I think Sean Connor's <cleanup> is better,
> > but to throw out some other random ideas: <unwind> or <onexit>.
> >
> > --
> > Andrew.
> >
> > +1 to <onexit>. I think I might like it better than <scoped>.
>
> I think <onexit> will be confusing: It's not run when you exit the
> program but when you leave the current scope.
>
> > <cleanup> and <unwind> aren't bad.
>
> <cleanup>, <unwind>, <scoped> would all be fine for me, with
> <unwind>/<scoped> slightly preferred – these two describe the mechanism
> / when stuff happens, not what happens.
What about <catch> and __catch?
It is simple, short and it will be caught when out of scope anyway.
-- Rodrigo
- References:
- [ANN] Lua 5.4.0 (alpha-rc2) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Daurnimator
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Coda Highland
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Andrew Gierth
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Coda Highland
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Doug Currie
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, pocomane
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Andrew Gierth
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, Coda Highland
- Re: [ANN] Lua 5.4.0 (alpha-rc2) now available, nobody