[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: syntactic sugar for imports and exports
- From: Tony Finch <dot@...>
- Date: Fri, 21 Oct 2011 16:49:18 +0100
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.
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Tony Finch
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Tony Finch
- syntactic sugar for imports and exports, Tony Finch
- Re: syntactic sugar for imports and exports, steve donovan