TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JavaScript once had a JSX-like syntax called E4X

171 点作者 jekrb大约 8 年前

15 条评论

vjeux大约 8 年前
I wrote a blog post a while ago about how JSX relates to E4X if you are interested: <a href="http:&#x2F;&#x2F;blog.vjeux.com&#x2F;2013&#x2F;javascript&#x2F;jsx-e4x-the-good-parts.html" rel="nofollow">http:&#x2F;&#x2F;blog.vjeux.com&#x2F;2013&#x2F;javascript&#x2F;jsx-e4x-the-good-parts...</a>
mccr8大约 8 年前
One bit of E4X trivia: a bug in the Firefox E4X implementation was taken advantage of by an exploit called &quot;EgotisticalGiraffe&quot;, according to the Snowden documents. The implementation of E4X in Firefox was large and complex.<p><a href="https:&#x2F;&#x2F;www.schneier.com&#x2F;blog&#x2F;archives&#x2F;2013&#x2F;10&#x2F;how_the_nsa_att.html" rel="nofollow">https:&#x2F;&#x2F;www.schneier.com&#x2F;blog&#x2F;archives&#x2F;2013&#x2F;10&#x2F;how_the_nsa_a...</a>
评论 #13903804 未加载
评论 #13905070 未加载
midnightmonster大约 8 年前
In 2008 I built a production website in Helma (server side JavaScript framework running on Rhino, JS on the JVM) with E4X for the view. You could say I&#x27;ve been waiting for React for a long time. Also that I used way-too-niche technology for a one-off project. :-&#x2F;
评论 #13903251 未加载
nthcolumn大约 8 年前
Fb says:<p>Prior Art # The JSX syntax is similar to the E4X Specification (ECMA-357). E4X is a deprecated specification with deep reaching semantic meaning. JSX partially overlaps with a tiny subset of the E4X syntax. However, JSX has no relation to the E4X specification.
Marazan大约 8 年前
E4X was part of Actionscript 3. It was very nice.
评论 #13902831 未加载
评论 #13902507 未加载
ads1018大约 8 年前
Would be nice to see JSX syntax become standardized. Clearly lots of people like it.
评论 #13902899 未加载
评论 #13902238 未加载
oomkiller大约 8 年前
If you&#x27;ve ever used Mirth[1] then you&#x27;ve used E4X, for better or worse (usually the latter). It&#x27;s still used very heavily inside of the transformers, even though Mozilla deprecated it years ago.<p>[1] <a href="https:&#x2F;&#x2F;www.mirth.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mirth.com&#x2F;</a>
评论 #13903715 未加载
tootie大约 8 年前
Wait till they find out where &quot;use strict&quot; came from.
samuel大约 8 年前
Yes! I use it from time to time in applications which have rhino as its scripting language(mirth connect and Orion&#x27;s rhapsody, mainly).
abalone大约 8 年前
Yes, this was back when the web was all crazy about XML as a <i>data transfer format</i> (redundancies and all). The goal of E4X was to make that data format easier to work with. JSON spelled the end of that.<p>JSX is more about XML as a development syntax, which makes more sense.
dkarapetyan大约 8 年前
Anyone remember Yahoo Pipes? I wrote some flows at some point and used E4X. It was fun.
评论 #13903371 未加载
riffraff大约 8 年前
I remember using this in a Firefox addon. Always seemed like a nice thing, but sadly it never became widespread.
azernik大约 8 年前
Note that this is rather old (2013).
nilved大约 8 年前
I wonder what made JSX seem like a good idea then.
评论 #13902340 未加载
评论 #13902061 未加载
评论 #13905889 未加载
maxpert大约 8 年前
Hahahaha so interesting, I posted it few days back on reddit :P and now it&#x27;s here