ECMAScript 2018 Language Specification
tc39.github.io
ECMAScript 2018 Language Specification
1–10 of 49 posts
Re: ECMAScript 2018 Language Specification
#2Re: ECMAScript 2018 Language Specification
#3It's not easy to tell from this document what has changed, but Dr. Axel Rauschmayer does a good job here http://2ality.com/2017/02/ecmascript-2018.html
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.
Re: ECMAScript 2018 Language Specification
#4Re: ECMAScript 2018 Language Specification
#5I wish ES would adopt python-style triple-quotes, so you could do things like:
String.raw```Look, this is a backtick: "`"```
(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.)
[1] http://2ality.com/2016/09/template-literal-revision.html
Re: ECMAScript 2018 Language Specification
#6https://github.com/tc39/proposal-bigint
It's the feature I'd most like to see added.
Re: ECMAScript 2018 Language Specification
#7Template Literal Revision [1] is a welcome change, but still falls way short, as there's still no way to easily include the backtick itself inside raw text. I wish ES would adopt python-style triple-quotes, so you could do things like: String.raw```Look, this is a backtick: "`"``` (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.) [1] ht…
Re: ECMAScript 2018 Language Specification
#8According to [the repo]( https://github.com/tc39/proposals/blob/master/finished-propo... ) only one minor feature had reached stage 4 since last year. Not sure why this is on top HN.
Re: ECMAScript 2018 Language Specification
#9Template Literal Revision [1] is a welcome change, but still falls way short, as there's still no way to easily include the backtick itself inside raw text. I wish ES would adopt python-style triple-quotes, so you could do things like: String.raw```Look, this is a backtick: "`"``` (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.) [1] ht…
Can't you just do `Look, this is a backtick: ${'`'}`? Or are you not counting that as "easy" because it's horrible.
`${'`'}Look, this is a backtick: \${'${'`'}'}${'`'}`
Re: ECMAScript 2018 Language Specification
#10 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.