by vmasto · 9y ago · 0 comments
If the argument is "because the proposal is immature and could be withdrawn" then the counter argument is that you have basically extended the language already by providing a built in "idx" global much like, say, parseFloat, with the difference that your function does not have any chance of actually being in the spec at any point, unlike the existential operator, thus you're basically masquerading the fact that using idx and the current proposal is the exact same thing just with different syntax.
Until then, we needed to have something that required minimal work (e.g. changes to the parser) that could tie us over until the language had proper support.
Also, we've been using this before the existential operator was formally proposed. (I should've probably got off my lazy butt to publish this sooner, but oh well.)
The plan is indeed to codemod this to the existential operator when it becomes available.
I made an issue for parser support, and after that we can create a babel plugin though https://github.com/babel/babylon/issues/328.