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 | |
---|---|---|---|---|
Non-nullable Int fields are defaulting to "0" | 1 | 863 | September 20, 2019 | |
Serialization nullables as @Optional by default? | 2 | 4910 | February 22, 2019 | |
Feature Request: Constructor parameter default value when receiving null input | 53 | 26374 | October 25, 2022 | |
Should i use nullable or default values in data classes? | 1 | 7223 | January 15, 2021 | |
Property initialization
|
5 | 10345 | March 10, 2013 |