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

Simplify representation of optional and nullable IPLD fields #601

Merged
merged 1 commit into from Jul 14, 2022

Conversation

masih
Copy link
Member

@masih masih commented Jul 14, 2022

Earlier versions of bindnode required pointers in order to represent
optional/nullable fields even if the go type was nillable.

Now that bindnode allows nillable types to represent optional/nulalble
fields, remove pointer to interfaces and simply use the interface type
straight up.

Relates to:

Earlier versions of bindnode required pointers in order to represent
optional/nullable fields even if the go type was nillable.

Now that bindnode allows nillable types to represent optional/nulalble
fields, remove pointer to interfaces and simply use the interface type
straight up.

Relates to:
 - ipld/go-ipld-prime#378
Copy link
Member

@willscott willscott left a comment

Choose a reason for hiding this comment

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

looks like a great set of simplifications!

@masih masih merged commit 0d79b48 into main Jul 14, 2022
@masih masih deleted the masih/bindnode-nillable-type branch July 14, 2022 13:46
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.

None yet

2 participants