Live data from Hacker News

ECMAScript 2018 Language Specification

tc39.github.io

1–10 of 49 posts

Re: ECMAScript 2018 Language Specification

#3

It'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

A few paragraphs down, you should find:

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

#5
Template 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] http://2ality.com/2016/09/template-literal-revision.html

Re: ECMAScript 2018 Language Specification

#7
post #5

Template 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.

Re: ECMAScript 2018 Language Specification

#8

According 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.

My understanding is ES2015 was huge, but E2016, ES2017, ES2018, etc. are comparatively tiny.

Re: ECMAScript 2018 Language Specification

#9
post #5

Template 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.

Suppose I wanted to embed your solution itself into a template literal. It would look like this:

`${'`'}Look, this is a backtick: \${'${'`'}'}${'`'}`

Re: ECMAScript 2018 Language Specification

#10
I wish the spec included a more bullet pointy changelog from the previous version, but at least it has this paragraph:

  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.
Post reply on HN