Skip to content
Prev 57398 / 63421 Next

Conventions: Use of globals and main functions

I meant that using a script both as a script and a library (sourcing into other files to serve as a package) is bad practice. I don't think having any functions in a script is necessarily bad practice.

Best,
CG

Thread (21 messages)

Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 24 Gábor Csárdi Conventions: Use of globals and main functions Aug 24 Duncan Murdoch Conventions: Use of globals and main functions Aug 25 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 25 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 25 Duncan Murdoch Conventions: Use of globals and main functions Aug 25 Gábor Csárdi Conventions: Use of globals and main functions Aug 26 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 26 William Dunlap Conventions: Use of globals and main functions Aug 26 Duncan Murdoch Conventions: Use of globals and main functions Aug 26 Martin Maechler Conventions: Use of globals and main functions Aug 27 Peter Meissner Conventions: Use of globals and main functions Aug 27 Abby Spurdle Conventions: Use of globals and main functions Aug 27 Abby Spurdle Conventions: Use of globals and main functions Aug 27 Henrik Bengtsson Conventions: Use of globals and main functions Aug 27 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 27 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 27 Peter Meissner Conventions: Use of globals and main functions Aug 28 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 28 Peter Meissner Conventions: Use of globals and main functions Aug 28 Cyclic Group Z_1 Conventions: Use of globals and main functions Aug 28