-
Notifications
You must be signed in to change notification settings - Fork 164
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
draft: Interaction with the Stage 2 Record & Tuple proposal for ECMAScript #1184
base: main
Are you sure you want to change the base?
Conversation
I should normally have been cleared for participation by Bloomberg that should have signed the agreement. |
Hey @rricard, Participation data looks correct. It'll be marked verified once this is ready to land. We usually do that jointly with the first contribution. I've also ensured Build runs. |
Excellent thank you for checking this! We'll clear that out then once it is ready to land which is not the case yet... |
I notice the record<K, V> conversion isn’t changed here yet. That’s probably just because it’s a work in progress, but it would be funny if we couldn’t use em for that, so I figured it may be worth pointing out just in case it was overlooked. let headers = new Headers(#{ "content-type": "record/record; record=record" }); As with dictionary member types, the
|
Another missing conversion is Union conversion and the overload resolution algorithms are affected similarly I think. (You’ll notice the former still hasn’t sorted stuff out from the last new language type! e.g. |
Thank you for this, I definitely overlooked both, will try to add them soon! |
Hello, this draft PR is a prototype spec text that attempts to define a minimal interaction between the Record & Tuple proposal for ECMAScript and WebIDL. The proposal is currently at Stage 2 so there is no intent to merge this PR at the moment but the goal is to open a conversation for our approach here.
In this PR, we want to keep things minimal: we do not intend just yet to add Record & Tuple to WebIDL types, we are only defining a conversion algorithm when records are put in place of objects (option bags notably) and when tuples are similarly put in place of arrays...
If the need arises later to have an API defined with WebIDL that return a Record or a Tuple for instance, then more work would be needed...
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff