Displaying 2 results from an estimated 2 matches for "accomand".
Did you mean:
recomand
2019 Aug 28
0
Conventions: Use of globals and main functions
Firtst, I think that thinking about best practice advise and beeing able to
accomandate different usage scenarios is a good thing despite me arguing
against introducing the main()-idiom.
Let's have another turn on the global-environment is bad argument.
It has two parts:
(1) Glattering namespace. Glattering name space might become a problem
because you might end up having us...
2019 Aug 28
2
Conventions: Use of globals and main functions
>?That beeing said I think the main task of scripts is to get things done via running them end to end in a fresh session. Now, it very well may happen that a lot of stuff has to be done. Than splitting up scripts into subscripts and sourcing them from a meta script is a straightforward solution. It might also be that some functionality is put into functions to be reused in other places. This