But they're not globals. They disappear when references are lost. Globals don't do that.
And you can totally test globals. I do it all the time. Any function that has a side effect is basically doing the same thing as a function that modifies a global.
1
u/[deleted] Jan 09 '18
But they're not globals. They disappear when references are lost. Globals don't do that.
And you can totally test globals. I do it all the time. Any function that has a side effect is basically doing the same thing as a function that modifies a global.