First, sorry for the reaction in #32, but as almost everyone, I'm very concerned about adding a global variable called globalThis. I believe it's a bad idea for the ergonomics and the future of the language. So this is my last (and I hope more productive) attempt aimed to help fixing this situation.
It's a shame this good proposal took this direction now but unfortunately there's one huge problem: naming collision. Seems almost impossible to create a global variable that doesn't break the web and has a name which... well, doesn't break the web community.
The basic idea would be to add a new well-known Symbol @@global which references to [[globalThis]].
That's it.
Would it alter the current, desired behavior?
I know, this is basically a different proposal, but honestly... if it'd work then I guess it will be worth.
First, sorry for the reaction in #32, but as almost everyone, I'm very concerned about adding a global variable called
globalThis
. I believe it's a bad idea for the ergonomics and the future of the language. So this is my last (and I hope more productive) attempt aimed to help fixing this situation.It's a shame this good proposal took this direction now but unfortunately there's one huge problem: naming collision. Seems almost impossible to create a global variable that doesn't break the web and has a name which... well, doesn't break the web community.
The basic idea would be to add a new well-known Symbol
@@global
which references to[[globalThis]]
.That's it.
Would it alter the current, desired behavior?
I know, this is basically a different proposal, but honestly... if it'd work then I guess it will be worth.
Thanks for your work and for your time.