lua-users home
lua-l archive

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



Once/if token filters become mainstream.

I've actually included support for them in OS X fink package of Lua 5.1.1, but that's kind of "unmentioned". To really start using them, I'd like them to be official.

Distributing code is the problem there; I cannot ship something that requires a patched Lua.

-asko


Jerome Vuarand kirjoitti 27.3.2007 kello 22:35:

Peter Jacobi wrote:
On 3/27/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>
wrote:
function makeset(t)
[...]
example = makeset{"foo", "bar", "baz"}

[...]

It's just that IMHO adding syntactic sugar would beatify (in both
meanings) the standard idiom for sets.

If it's a simple syntax modification and it's easily implemented with
existing syntax, it's a job for token filters :-)