Skip to content

Conversation

@dherman
Copy link
Collaborator

@dherman dherman commented Dec 31, 2021

This PR changes the Object::get() API to return an overloaded result type V: Value instead of JsValue, and automatically performs the downcasting on behalf of the caller. Since it's already a fallible API, this should generally end up being more concise and ergonomic.

This is a backwards-incompatible change, however, and will require migration notes if we decide to go through with it.

(Replaces #795)

@dherman dherman changed the base branch from main to next/0.10 December 31, 2021 19:23
@dherman dherman requested a review from kjvalencik December 31, 2021 19:24
@kjvalencik
Copy link
Member

Looks great!

@dherman dherman merged commit 3f801c4 into next/0.10 Jan 14, 2022
@dherman dherman deleted the overload-object-get branch January 14, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants