-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow defining only a reader #3
Comments
well, it stands to reason that when you introduce a custom reader, you also need a corresponding writer so that the serialization round-trips, no? |
Is it really necessary? For configuration file like .ini, .toml or in your case for .yaml tests we don't need to produce them. From a time-to-market point-of-view, it saves half the work (differences between parsing and generation aside). |
well, it's necessary if you write :) that code failed because it was calling that serializer and trying to read back on the other end (broadcasts etc) ☯️ |
Mmmh right I think I conflated 2 issues:
We had a writer missing on case 1 leading to a bug and I assumed that for case 2 (format) we would have the same issue. So the question is "can we implement only a reading for a serialization format without the corresponding writer?", if yes we can close the issue. In short the context is wrong but the question is valid :D |
For the state tests I'm defining only a Bitfield reader but it apparently triggered issues:
cc @arnetheduck
Those were solved by commenting out the reader in status-im/nimbus-eth2#259
This would be helpful for YAML serialization so that we can forego the writer implementation.
The text was updated successfully, but these errors were encountered: