Skip to content

Conversation

@dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Jan 7, 2021

See #31 (comment) for the background.

Supersedes #31
Closes #7

Note that we do not yet have support for #[codec(skip)] (implemented in PR #44) so when that lands we'll want to amend the tests here (or there, if this lands first).

@dvdplm dvdplm marked this pull request as draft January 7, 2021 23:35
@dvdplm dvdplm marked this pull request as ready for review January 8, 2021 14:16
@dvdplm dvdplm self-assigned this Jan 12, 2021
@dvdplm dvdplm requested review from Robbepop and ascjones January 12, 2021 09:58
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

Just need to fix the identity of PhantomData<T>, some tests may fail

@dvdplm dvdplm requested a review from ascjones January 12, 2021 14:17
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

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

All in all code looks good.
The only thing I am missing is an in-depth comment explaining the design rationals behind this PR so that we won't forget why we chose this design instead of others we previously talked about. I always love finding such comments when I forgot about certain rationals after months of not looking at the issue.

@dvdplm
Copy link
Contributor Author

dvdplm commented Jan 18, 2021

The only thing I am missing is an in-depth comment explaining the design rationals behind this PR

@Robbepop added f259e70 – happy to tweak that in a separate PR if you want.

@dvdplm dvdplm merged commit 93f32a5 into master Jan 18, 2021
@dvdplm dvdplm deleted the dp-add-derive-attribute-to-skip-a-field branch January 18, 2021 13:21
@dvdplm dvdplm mentioned this pull request Jan 18, 2021
@Robbepop
Copy link
Contributor

I'd love to have the example of reconstructing rust types given the scale info metadata as motivation for having PhantomData deginitions.

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.

Remove PhantomData

4 participants