[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 'in' keyword today (was Re: mathlib)
- From: Coroutines <coroutines@...>
- Date: Wed, 9 Apr 2014 13:03:07 -0700
Er, I know we've breached into the "tricks with the debug library"
space now, but I'd like to recap some important parts of the proposal:
Some of us would like to see this become part of Lua -- the expression
form: "a, b, c in some_table" being equivalent to "some_table.a,
some_table.b, some_table.c"
Which would enable this:
local tcat, tins, trem = concat, insert, remove in table
This short-form, syntactic sugar would be added as well for local declarations:
local concat, insert, remove in table
That last one would basically be the same as the hacky from() where it
looks for the nearest locals on the stack and reassigns them to match
the identifiers with identical keys in the table.
- References:
- Re: mathlib, Roberto Ierusalimschy
- Re: mathlib, Luiz Henrique de Figueiredo
- Re: mathlib, Roberto Ierusalimschy
- Re: mathlib, Christopher Berardi
- Re: mathlib, steve donovan
- Re: mathlib, Christopher Berardi
- Re: mathlib, Sean Conner
- Re: mathlib, Coroutines
- Re: mathlib, Sean Conner
- Re: mathlib, Christopher Berardi
- Re: mathlib, steve donovan
- Re: mathlib, Coroutines
- Re: mathlib, steve donovan
- Re: mathlib, Coroutines
- 'in' keyword today (was Re: mathlib), Petite Abeille
- Re: 'in' keyword today (was Re: mathlib), Rena
- Re: 'in' keyword today (was Re: mathlib), Philipp Janda
- Re: 'in' keyword today (was Re: mathlib), Coroutines
- Re: 'in' keyword today (was Re: mathlib), Dirk Laurie
- Re: 'in' keyword today (was Re: mathlib), steve donovan
- Re: 'in' keyword today (was Re: mathlib), steve donovan
- Re: 'in' keyword today (was Re: mathlib), steve donovan
- Re: 'in' keyword today (was Re: mathlib), Petite Abeille
- Re: 'in' keyword today (was Re: mathlib), steve donovan
- Re: 'in' keyword today (was Re: mathlib), Petite Abeille