Replies: 1 comment
-
Good point. Though at the moment I tend to think it's better to leave it like that because of multiple reasons:
I may be mistaken of course, so open for objections or suggestions to that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed a part of what was brought up in #63 wasn't really discussed, namely the fact that proto3 doesn't have the concept of "nullable". Any field not specified is left at whatever is considered to be "zero" for that particular type, and left out of the message. This clashes with how the library currently behaves, where initializing a message without specifying every field results in an error.
This would remove the need for
Optional
hints and thedefault
keyword (although that would still be a nice-to-have) in definitions, while of course sacrificing compatibility with proto2.Beta Was this translation helpful? Give feedback.
All reactions