proposal-extended-numeric-literals icon indicating copy to clipboard operation
proposal-extended-numeric-literals copied to clipboard

Extensible numeric literals for JavaScript

Results 15 proposal-extended-numeric-literals issues
Sort by recently updated
recently updated
newest added

By reading the text, it would seem like it would, but wanted to sanity check: ```javascript let a = 1_cm; let b = 1_m; console.log(`${a.plus(b)} meters`); // prints 1.01_m ```...

The explainer prose in [CSS Typed Object Model](https://github.com/tc39/proposal-extended-numeric-literals#css-typed-object-model), which references [Numeric Factory Functions](https://drafts.css-houdini.org/css-typed-om/#numeric-factory) ignores that `CSS.px` (and friends) [don't actually accept an object argument](https://drafts.css-houdini.org/css-typed-om/#dom-css-number). ```js // For the sake of...

One problem people bring up with this proposal is that it prevents TC39 from ever adding new literals to the language. There are a few solutions to this. E.g. maybe...

I noticed some similarities between this (esp. if #3 is allowed) and [the strongly-typed literal proposal](https://github.com/mikewest/tc39-proposal-literals), and thought these could potentially inform each other. In particular, you could use extensible...

C++ has an extensive system that I am vaguely familiar with. I'd love to hear more about how the design here compares with that system, and with any other languages.