waterbearlang/waterbear — Issue #107: Eliminate global data
Author: dethe
Created: 2012-01-01 21:00:35+00:00
State: open

In the construction of the workspace and block menu, there is a lot of reliance on global data and functions, and an implicit calling of menu() to build the block menu. If instead the language file can call menu explicitly, passing in the structures needed, we can avoid globals and add features like some primitive type checking and coercion, as discussed in Issue #94. This can help make it clearer what belongs in a language file and why.