I wonder why nullable fields don’t have default value as null? If a field is nullable 99% you are going to initialize it with null anyway. So such opportunity will save the time of many developers.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Serialization nullables as @Optional by default? | 2 | 4395 | February 22, 2019 | |
Feature Request: Constructor parameter default value when receiving null input | 53 | 20074 | October 25, 2022 | |
Should i use nullable or default values in data classes? | 1 | 6011 | January 15, 2021 | |
Json models with null safety -> ugly code
|
4 | 1737 | January 22, 2014 | |
Never nullable type | 5 | 895 | February 9, 2022 |