There is often a reason to declare the same variable in multiple modules to avoid them being undefined when modules aren't used together.
Currently, that generates a "skipped duplicate variable" warning on every recompile - which is distracting and undesirable.
While an argument can be made that special support for GLOBAL variables should be added for cross-module stuff, i think it makes sense to generally allow this to happen without warnings, and have a flag somewhere to enable debug-level compilation logs that would throw those warnings into the console.
There is often a reason to declare the same variable in multiple modules to avoid them being undefined when modules aren't used together.
Currently, that generates a "skipped duplicate variable" warning on every recompile - which is distracting and undesirable.
While an argument can be made that special support for
GLOBAL
variables should be added for cross-module stuff, i think it makes sense to generally allow this to happen without warnings, and have a flag somewhere to enable debug-level compilation logs that would throw those warnings into the console.