Posted 03 August 2014 - 11:46 AM
Sorry if the title is confusing, not sure how to phrase it exactly. Let me try to demonstrate what I mean in code.
Which of these two is better:
OR
So is it better to:
Define LittleFunction() BEFORE BigFunction(), like in the first example…
OR
Define LittleFunction() INSIDE BigFunction(), like in the second example?
Is there other better options/methods I don't know about? And sorry if my format/layout isn't ideal, I am still very much a beginner.
Which of these two is better:
local function LittleFunction()
blahblah
end
local function BigFunction
LittleFunction()
end
OR
local function BigFunction()
local function LittleFunction()
blahblah
end
LittleFunction()
end
So is it better to:
Define LittleFunction() BEFORE BigFunction(), like in the first example…
OR
Define LittleFunction() INSIDE BigFunction(), like in the second example?
Is there other better options/methods I don't know about? And sorry if my format/layout isn't ideal, I am still very much a beginner.
Edited on 03 August 2014 - 09:57 AM