Live data from Hacker News

ECMAScript 2018 Language Specification

tc39.github.io

11–20 of 49 posts

Re: ECMAScript 2018 Language Specification

#11
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…

Won't this cause issues if i ever want to embed "```"?

Re: ECMAScript 2018 Language Specification

#13
post #6

I guess BigInt (i.e. native integer support) is only stage 3: https://github.com/tc39/proposal-bigint It's the feature I'd most like to see added.

Didn't even know that was on the docket, that's awesome. Would doing operations on them automatically cast them to float64? I know they offer integer typed arrays, but any mathematical operations will automatically cast them to float64, which is a bummer.

Re: ECMAScript 2018 Language Specification

#14
post #6

I guess BigInt (i.e. native integer support) is only stage 3: https://github.com/tc39/proposal-bigint It's the feature I'd most like to see added.

It was only recently bumped up.

You can help out by contributing testing etc. in babel[0] or typescript

[0] https://github.com/babel/babel/pull/6015

Re: ECMAScript 2018 Language Specification

#15
post #13
post #6

I guess BigInt (i.e. native integer support) is only stage 3: https://github.com/tc39/proposal-bigint It's the feature I'd most like to see added.

Didn't even know that was on the docket, that's awesome. Would doing operations on them automatically cast them to float64? I know they offer integer typed arrays, but any mathematical operations will automatically cast them to float64, which is a bummer.

coercion throws a type error - you can only do ops between bigints

Re: ECMAScript 2018 Language Specification

#16
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…

Won't this cause issues if i ever want to embed "```"?

Pretty much. This is why some languages offer the ability to define an arbitrary quote end token.

Re: ECMAScript 2018 Language Specification

#18
post #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 communicat…

Nope, that’s a copy-paste from last year’s spec: http://www.ecma-international.org/publications/files/ECMA-ST...

Re: ECMAScript 2018 Language Specification

#20
post #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 Atom…

That’s ECMAScript 2017.
Post reply on HN