Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensible Numeric Literals: Stage 1 #30

Open
hzoo opened this issue Sep 28, 2017 · 5 comments
Open

Extensible Numeric Literals: Stage 1 #30

hzoo opened this issue Sep 28, 2017 · 5 comments

Comments

@hzoo
Copy link
Member

hzoo commented Sep 28, 2017

Champion: @littledan
Repo: https://github.com/littledan/proposal-extensible-numeric-literals
Slides: https://docs.google.com/presentation/d/13Ej08CCqXGCTF46GabGdzBepWBgU5d70TtPPYFkkZcs/edit#slide=id.p
First presented at the Sept 2017 meeting

Examples

1236536253453n		BigInt (special case)
4525i			Imaginary numbers
235435.461m		IEEE 754-2008 64-bit decimal
300px			CSS Typed OM
@hzoo hzoo mentioned this issue Sep 28, 2017
11 tasks
@jridgewell
Copy link
Member

What is there for us to do here in babel? Parsings fine, but what's the transform?

@hzoo
Copy link
Member Author

hzoo commented Sep 28, 2017

Just parsing I believe, same as BigInt? Don't have that transform either and it's not meant to be used for prod babel/babel#6015

@benjamn
Copy link

benjamn commented Sep 28, 2017

Despite advancing to Stage 1, this proposal is very early-stage, and it didn't meet with overwhelming confidence or enthusiasm in the September TC39 meeting. I can't imagine using this yet, or encouraging anyone else to use it, until it's much more fleshed out.

I'm also reluctant in principle to add new types to the AST for a syntax that is so likely to change. What would that look like, exactly?

@hzoo
Copy link
Member Author

hzoo commented Sep 28, 2017

Yeah we can wait, like some of the other ones; either way unlikely to be really supported with Babel anyway like BigInt other than when it's natively supported?

@littledan
Copy link

I agree with @benjamn . This is really much less certain than most of the other Stage 1 proposals. I haven't written out any spec text, and the text I was imagining is likely to change significantly from what I was imagining based on committee feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants