TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ECMAScript 2018 Language Specification

149 pointsby treyhuffineover 7 years ago

14 comments

johnsonjoover 7 years ago
I&#x27;m really hoping async iterators [1] will make it to stage 4, but from the github I can&#x27;t really tell what&#x27;s holding it back as it has several browsers with implementation (I know that&#x27;s not the only requirement for stage 4, but it&#x27;s one of them.) I also noticed it&#x27;s not on the agenda for the November meeting [2]. I understand there are a lot of features being worked on concurrently so it may not be finished by ES2018, but is there any chance someone could give me an update on what&#x27;s happening with it. I just think this feature is amazing! And also thanks TC39 for all the great features coming to ECMAScript!<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-async-iteration" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-async-iteration</a> [2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;agendas&#x2F;blob&#x2F;master&#x2F;2017&#x2F;11.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;agendas&#x2F;blob&#x2F;master&#x2F;2017&#x2F;11.md</a>
评论 #15648829 未加载
heydenberkover 7 years ago
It&#x27;s not easy to tell from this document what has changed, but Dr. Axel Rauschmayer does a good job here <a href="http:&#x2F;&#x2F;2ality.com&#x2F;2017&#x2F;02&#x2F;ecmascript-2018.html" rel="nofollow">http:&#x2F;&#x2F;2ality.com&#x2F;2017&#x2F;02&#x2F;ecmascript-2018.html</a>
评论 #15644817 未加载
nikcubover 7 years ago
Optional catch binding[0], which is at stage 3, seems like a bad idea[1] and has been pointed out as such[2]<p>[0] <a href="http:&#x2F;&#x2F;2ality.com&#x2F;2017&#x2F;08&#x2F;optional-catch-binding.html" rel="nofollow">http:&#x2F;&#x2F;2ality.com&#x2F;2017&#x2F;08&#x2F;optional-catch-binding.html</a><p>[1] <a href="http:&#x2F;&#x2F;wiki.c2.com&#x2F;?EmptyCatchClause" rel="nofollow">http:&#x2F;&#x2F;wiki.c2.com&#x2F;?EmptyCatchClause</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-optional-catch-binding&#x2F;issues&#x2F;2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-optional-catch-binding&#x2F;issu...</a>
评论 #15646712 未加载
评论 #15646362 未加载
pc2g4dover 7 years ago
This page is confusing because it describes itself as ECMAScript 2018 but the features it lists are those I&#x27;ve associated with ECMAScript 2017.<p>Looking at the Github repo, you can see that they changed it from 2017 to 2018 on March 31st: <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;ecma262&#x2F;commit&#x2F;8340bf9a8427ea81bb0d1459471afbcc91d18add#diff-3540caefa502006d8a33cb1385720803" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;ecma262&#x2F;commit&#x2F;8340bf9a8427ea81bb0d1...</a><p>So what happened to 2017?
评论 #15646355 未加载
xamuelover 7 years ago
Template Literal Revision [1] is a welcome change, but still falls way short, as there&#x27;s still no way to easily include the backtick itself inside raw text.<p>I wish ES would adopt python-style triple-quotes, so you could do things like:<p>String.raw```Look, this is a backtick: &quot;`&quot;```<p>(The inability to do this is a pain point when you want to embed a language in ES and that language itself makes use of backticks.)<p>[1] <a href="http:&#x2F;&#x2F;2ality.com&#x2F;2016&#x2F;09&#x2F;template-literal-revision.html" rel="nofollow">http:&#x2F;&#x2F;2ality.com&#x2F;2016&#x2F;09&#x2F;template-literal-revision.html</a>
评论 #15646021 未加载
评论 #15644971 未加载
评论 #15645193 未加载
评论 #15660767 未加载
basculeover 7 years ago
I guess BigInt (i.e. native integer support) is only stage 3:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-bigint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-bigint</a><p>It&#x27;s the feature I&#x27;d most like to see added.
评论 #15645534 未加载
评论 #15645385 未加载
allenwbover 7 years ago
That document is an incomplete working DRAFT for the next edition of the ECMAScript standard.<p>Don&#x27;t assume that the current snapshot is feature complete.
评论 #15646381 未加载
mstadeover 7 years ago
I wish the spec included a more bullet pointy changelog from the previous version, but at least it has this paragraph:<p><pre><code> This specification introduces Async Functions, Shared Memory, and Atomics along with smaller language and library enhancements, bug fixes, and editorial updates. Async functions improve the asynchronous programming experience by providing syntax for promise-returning functions. Shared Memory and Atomics introduce a new memory model that allows multi-agent programs to communicate using atomic operations that ensure a well-defined execution order even on parallel CPUs. This specification also includes new static methods on Object: Object.values, Object.entries, and Object.getOwnPropertyDescriptors.</code></pre>
评论 #15645635 未加载
sandstromover 7 years ago
I hoped decorators[1] would make it, but seems unlikely (looks like they&#x27;re still at stage 2).<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-unified-class-features" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-unified-class-features</a>
评论 #15647366 未加载
评论 #15646242 未加载
sterlingfsover 7 years ago
Im honestly not trying to be like TLDR, but a revision log would be immensely appreciated.
评论 #15646271 未加载
growtofillover 7 years ago
According to [the repo](<a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposals&#x2F;blob&#x2F;master&#x2F;finished-proposals.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposals&#x2F;blob&#x2F;master&#x2F;finished-propo...</a>) only one minor feature had reached stage 4 since last year. Not sure why this is on top HN.
评论 #15645019 未加载
评论 #15646251 未加载
评论 #15646058 未加载
acjohnson55over 7 years ago
My number 1 wish for JavaScript is that it could become fully expression oriented. There&#x27;s been talk about `do` blocks, which would modify control structures like `if` to become expressions but I don&#x27;t think that&#x27;s gone anywhere.
gitconnectedover 7 years ago
Still a working draft, but great to see all the potential updates
ryanmarshover 7 years ago
From section “4. Overview”<p><i>ECMAScript is an object-oriented programming language for ...</i><p>heavy sigh
评论 #15648793 未加载