-
Notifications
You must be signed in to change notification settings - Fork 108
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
Parsing APIs #1
Comments
@jzaefferer I think the main issues may be:
In any event, I think that, unlike the way ICU currently does it with a symmetric object (input+output), it would be better to have a separate object for parsing rather than add a "parse()" function on the date or number objects. |
I agree with @srl295. Parsing dates especially feels like a very risky task with extremely high barrier for good user experience. Unless we can provide something that works for 95% cases, developers who will decide to use it will have to manually parse it anyway for when Intl API fails, and will probably come up with their own solution anyway. I'd leave it to specialized libraries. |
Closing this issue by consensus, but if anyone wants to go for it, we are open to evaluate the concrete proposal. |
JFYI, v8 has v8Parse, but we may get rid of it soon pending the stat collection on it usage. /cc @littledan, @Cira, @jungshik |
2020 Update: See #342 for further discussion.
Currently the spec has no APIs for parsing dates or numbers. Supposedly the response used to be "use a datepicker" when asking about date parsing. I'm wondering if that changed.
The text was updated successfully, but these errors were encountered: