Remember ECMAScript for XML (E4X)? Deprecated in 2014.
en.wikipedia.org/wiki/ECMAScri

var sales = <sales vendor="John">
<item type="peas" price="4" quantity="6"/>
<item type="carrot" price="3" quantity="10"/>
<item type="chips" price="5" quantity="3"/>
</sales>;

alert( sales.item.(@​type == "carrot").@​quantity );
alert( sales.@​vendor );
for each( var price in sales..@​price ) {
alert( price );
}

@tripu @rauschma

Yeah! One wonders if E4X had stayed, would we be able to use it instead of all the different JSX-transform add-ons? Wouldn't that actually be nicer?

Follow

@duncanmak @rauschma That's what I think, too: that a well designed standard would have worked better than React-centric and idiosyncratic JSX…

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.