08:53
<sffc>
https://github.com/tc39/proposal-measure/issues/43
08:54
<sffc>
At least 3 programming languages have an Amount-like thing in the standard library: Swift, Java, and F#. Several others have it in popular packages. Seems worth highlighting.
08:54
<Jesse>
thanks for putting that together
08:55
<Jesse>
I can add a slide for this
08:56
<sffc>
Quantity seems to be the most popular name for it, except in Swift which uses the name Measurement. No one I saw uses Amount. That doesn't mean it's a bad name, it just means there is less precedent for it
08:57
<Jesse>
IIRC we also floated "quantity" a while back but didn't pick it
08:58
<sffc>
We can do a TG5 study at Stage 2 like we did with Temporal to decide between PlainDate, LocalDate, and CivilDate
09:01
<sffc>
Also, the "Why Amount" slide should have a bullet point about library interop: introducing a standard data type that third-party libraries can use interoperably
09:01
<sffc>
For example, a third-party unit conversion library and a third-party unit picker widget can talk natively with each other with Amount
09:02
<sffc>
(and of course they can also talk natively with Intl.NumberFormat)
09:03
<sffc>
Amount does this better than a protocol because it is immutable with its own prototype and methods for interacting with it
09:31
<sffc>
If anyone in plenary wants to push on the protocol thing… there's another topic on the agenda about why Thenables, TC39's most prominent procol, are a security risk due to prototype inheritance. Immutable objects with a specific API are safer.
12:03
<eemeli>
This seems like information that ought to be included in the readme, no?
12:04
<Jesse>
agree -- I can add that
12:05
<eemeli>
I would prefer not opening up the naming discussion again. It's a possibility, yes, but I don't think we should be actively pushing for more bikeshedding.
12:07
<Jesse>
my recollection is that we've largely settled on a name -- I think with "amount" we've been in a steady state for a while now
12:07
<Jesse>
(though indeed maybe a better name could come up)