3 ms·
I was there when E4X was introduced, about 20 years ago. It lasted about 5 whole years before people started to think it was old and crufty. https://developer.
by db48x 4y ago
I was there when E4X was introduced, about 20 years ago. It lasted about 5 whole years before people started to think it was old and crufty.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/1.5/What_s_new_in_1.5_alpha#e4x https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Rel...
- ghusbands 4y agoE4X couldn't really be used - it was never available enough (just one major browser) and there was no polyfill or to-JS compiler (those things weren't common at that time). Had E4X been more widely released, I might have used it, as might many others. In retrospect, though, it's probably good that it didn't catch on, as it introduced a lot of extra syntax and operators, like a.@b, a.@*, a.*, a.b::c, a..b, a.(@b==x) and had semantics that affected large parts of the JS Runtime (how the delete operator works, how calling works, what += means, and so on).
- db48x 4y agoSome of those operators would have been pretty useful, though the ones for dealing with xml namespaces wouldn’t be.