Locals Vs Globals

lua-users home
wiki

Difference (from prior minor revision) (no other diffs)

Changed: 17c17
* Program Analysis: The above point implies uses of local variables can often be more easily traced to their definition and vice-versa. This implies that locals can be easier to use for static program analysis, such as correctness checking/DetectingUndefinedVariables/LuaInspect and optimization (e.g. SourceOptimizer and LuaImplementations).
* Program Analysis: The above point implies uses of local variables can often be more easily traced to their definition and vice-versa. This implies that locals can be easier to use for static program analysis, such as correctness checking/DetectingUndefinedVariables/LuaInspect and optimization (e.g. SourceOptimizer and LuaImplementations). Locals also reduce unintended coupling.

Comparison between local and global variables:


RecentChanges · preferences
edit · history
Last edited July 10, 2010 9:35 pm GMT (diff)