forked from soc/scala-java-time
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Experiment with TC39 Temporal proposal #365
Comments
Hmm, this might not be possible at all 😕 I ran into problems really quickly. Compare:
With:
So I think scala-java-time must continue to serve as the de facto compliant implementation of Meanwhile, Temporal could be used to implement a non-compliant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a proposal for a JS-native date/time API:
We should investigate implementing the
java.time.*
APIs in terms of Temporal. If successful, it may improve performance and more importantly help solve #69 by reducing the size of the generated JS code.Although the Temporal APIs are not yet available it is in the process of implementation in browsers and the API is not expected to change.
There are currently polyfills which we can target for initial experiments. In http4s/http4s-dom#30 (comment) I estimated the size of scala-java-time to be roughly 100kb; meanwhile, this polyfill boasts a size of 15 kb. So that's something to think about :)
The text was updated successfully, but these errors were encountered: