lua-users home
lua-l archive

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


steve donovan <steve.j.donovan@gmail.com> wrote:
>
> I suppose the chief obstacle to adoption is that this is fairly
> specialized sugar, and not keyword-driven.

Yes.

For fans of hyperglycemic syntax, what I'm really doing is skating
on the edge of full blown functional-style pattern matching and table
comprehensions :-)

> Another option for injection-syntax for modules would be something like this:
> 	return { @foo, @bar, @zig }
> or
> 	return { foo=@, bar=@, zig=@ }

I was thinking { = foo, = bar }

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
South Utsire, Forties: Southwesterly 5 to 7, perhaps gale 8 later. Rough.
Occasional rain. Moderate or good.