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

Use inline/value class instead of primitive type on the data class properties declaration #22

Open
radityagumay opened this issue Jun 16, 2022 · 0 comments

Comments

@radityagumay
Copy link

radityagumay commented Jun 16, 2022

As we use primitive type on the data class properties declaration it would give a high chance for error-prone of doing substitution in between properties. Indeed naturally we're able to avoid this issue by declaring the name of the properties themselves when assigning the value. However, it still has a chance the users do not follow the convention for doing that. The consideration for using the inline/value class can be helpful here.

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

No branches or pull requests

1 participant