[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight function syntax (again) Re: [ANN] Lua 5.2.0 (alpha-rc2) now available
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 22 Nov 2010 10:32:20 +0100
As this all just about a shortcut of making function statements less
clunky, in areas where needed, how about removing the need to name the
arguments?
@(=> _1 + _2, _1 * _2)
is short for
function(a,b) return a+b, a*b end
But honestly as seeing Lua's anti-bloating philosophy, and this all
just adding brevity without new functionality I doubt we ever gonna
see it in stock Lua.
(BTW: I'd easily wave this all for continue ;-)
On Mon, Nov 22, 2010 at 9:55 AM, David Kastrup <dak@gnu.org> wrote:
> steve donovan <steve.j.donovan@gmail.com> writes:
>
>> Well, language design is not a popularity contest - or should not be.
>> But this proposal has a certain elegance to it.
>
> Language design is not a contest in piling up the largest heap of
> elegant splinters.
>
> --
> David Kastrup
>
>
>