[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Idea: 'function' keyword optional when preceded by 'local'
- From: Dirk Laurie <dpl@...>
- Date: Thu, 14 Jul 2011 08:47:28 +0200
On Thu, Jul 14, 2011 at 03:14:14AM +0200, Steve Litt wrote:
> On Wednesday, July 06, 2011 03:09:37 PM David Hollander wrote:
> > Since the local scope does not have table semantics where it is
> > indexable by an evaluation:
> > local [getname()] = 3
> >
> > why not disrequire the use of the 'function' keyword when 'local'
> > is present?
> >
> > local function success(items, total)
> > reply(client, view.list(items, total))
> > end
>
> One reason not to do that is because "function" is self-documenting
> code, and typing it isn't a big hassle.
>
Welcome back, Steve. I've been missing your commonsense comments.
Like this one.
Dirk