[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Idea: 'function' keyword optional when preceded by 'local'
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 6 Jul 2011 21:31:40 +0200
On Jul 6, 2011, at 9:21 PM, Sebastien Lai wrote:
> Apart from that, it looks like purely syntactic sugar...
Which it is:
local function dwim() end
is equivalent to:
local dwim = function() end
http://www.lua.org/manual/5.1/manual.html#2.5.9