Re:Languages Which Almost Became CSS
by tannhaeuser on Friday August 04, 2017 @02:19AM
(#14926719)
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.
[ Parent
| on HN ]
>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.
Oh, XML will soon be only remembered as that thing which used to stand for X in AJAX.
Re:Languages Which Almost Became CSS
by rhinoceraptor on Friday August 04, 2017 @12:56PM
(#14930036)
JSX 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.