3 ms·
> The one tiny drawback is that the globals have to be variables instead of constants, but that’s one of those problems that really only exists in the theoretic
by xienze 4y ago
> The one tiny drawback is that the globals have to be variables instead of constants, but that’s one of those problems that really only exists in the theoretical realm. I’ve never seen a bug from someone overwriting a global variable like this, that is intended to be immutable.
Eh yeah, but if you’re writing a library you have to assume someone will do it, because it’s possible to do. Which makes it a non-starter IMO.