Replies: 2 comments 1 reply
-
I guess it's not obvious but the option |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, that would be appreciated! |
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
-
Immutables initializes collection attributes to the empty collection. I find this choice both practical and sensible. It avoids boilerplate and encourage to favor empty collections over null references (and a least distinguish the two concepts).
record-builder has emptyDefaultForOptional but I didn't find a way to initialize collection. Did i missed something? If not, could emptyDefaultForCollection option be added?
Beta Was this translation helpful? Give feedback.
All reactions