So far the most frustrating part of using Julia has been the below annoying error message:
Assignment to `IDOutput` in soft scope is ambiguous because a global variable by the same name exists: `IDOutput` will be treated as a new local. Disambiguate by using `local IDOutput` to suppress this warning or `global IDOutput` to assign to the existing global variable.
My code:
IDOutput = [];
If I have only a few input parameters, I would wrap everything into a function. But sometimes, I have dozens and dozens of parameters. What is the most grace way of fixing this issue?
Is it even true that “a global variable by the same name exists”? No matter how I change the name to something unique, the system would simply throw out the same error.