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

Remove null, use default values instead #54

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rellfy
Copy link

@rellfy rellfy commented Sep 20, 2024

This PR follows up on my comment: #8 (comment).

I could be wrong on this, and/or it may just be personal preference, but I think it is nicer to not have null and instead have the default message values available (unless explicitly marked as optional). To check if something is missing a property such as hasValue can be set on the message.

Any feedback on this is appreciated!

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.

1 participant