[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Say No to global-by-default (summary of the discussion)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 31 Jul 2018 07:17:07 +0200
2018-07-31 0:12 GMT+02:00 dyngeccetor8 <dyngeccetor8@disroot.org>:
> On 07/31/2018 12:00 AM, Sean Conner wrote:
> Looks like we're off-topic here and just criticizing others habits
> while showing ours. So lets continue!
Good. I do not need to fork the thread.
> ... recursive functions (where you can't call itself without previous declaration).
The only [1] place in Lua where syntax sugar saves you one statement is
local function f(...)
which is not equivalent to
local f = function(...)
but to [2]
local f; f = function(...)
precisely in order that recursive functions work.
[1] Please show me wrong and exhibit anotther. You'll make my day.
[2] I'm putting in the semicolon to prove that there are two statements.
- References:
- Say No to global-by-default (summary of the discussion), Egor Skriptunoff
- Re: Say No to global-by-default (summary of the discussion), Dirk Laurie
- Re: Say No to global-by-default (summary of the discussion), Egor Skriptunoff
- Re: Say No to global-by-default (summary of the discussion), Luiz Henrique de Figueiredo
- Re: Say No to global-by-default (summary of the discussion), Dirk Laurie
- Re: Say No to global-by-default (summary of the discussion), Egor Skriptunoff
- Re: Say No to global-by-default (summary of the discussion), Dirk Laurie
- Re: Say No to global-by-default (summary of the discussion), Egor Skriptunoff
- Re: Say No to global-by-default (summary of the discussion), Sean Conner
- Re: Say No to global-by-default (summary of the discussion), dyngeccetor8