Skip to content
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

neon: Remove JsResultExt #904

Merged
merged 2 commits into from
Jun 9, 2022
Merged

neon: Remove JsResultExt #904

merged 2 commits into from
Jun 9, 2022

Conversation

kjvalencik
Copy link
Member

JsResultExt is redundant with ResultExt. They are identical traits except for an additional V: Value bound in JsResultExt.

Having two traits presents the opportunity for ambiguous method resolution. This PR proposes that we take the opportunity before 1.0 to make a breaking change and remove JsResultExt.

As demonstrated in the diff, replacing a JsResultExt implementation with ResultExt is as trivial as replacing JsResultExt<..> with ResultExt<Handle<..>>.

JsResultExt is redundant with ResultExt. They are identical traits except for an additional `V: Value` bound in `JsResultExt`.
Copy link
Collaborator

@dherman dherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, there's no real point to JsResultExt anymore.

@kjvalencik kjvalencik merged commit bc7e051 into main Jun 9, 2022
@kjvalencik kjvalencik deleted the kv/remove-jsresultext branch June 9, 2022 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants