3 ms·
E4X was a standard for XML literals in JavaScript supported by Mozilla's JavaScript, including Rhino. It was hated or unknown at best because "XML sucks", so Mo
by tannhaeuser 9y ago
E4X was a standard for XML literals in JavaScript supported by Mozilla's JavaScript, including Rhino. It was hated or unknown at best because "XML sucks", so Moz removed it a couple years ago. Of course, today folks cheer at React's JSX, which is more or less the exact same thing, yet comes with the Facebook licence. Goes to show how much irrationality there is in the evolvement of web standards. It's also something to keep in mind when judging use of the newest ES7+ syntax sugar on a project.
- coldtea 9y ago>Goes to show how much irrationality there is in the evolvement of web standards. Well, for one E4X was never adopted by other browsers that mattered, only Mozilla. Second, it's main use was for working with XML, which the web is glad we got rid of.
- rhinoceraptor 9y agoJSX is really just syntactic sugar for function calls, I suppose you could use React components as data structures but that's not really the intended use case.