-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I can understand why making types nullable by default might be a reasonable decision for growing systems adding new features but I think there are reasons why this might not be ideal:
-
This conflates the idea of nullability with providing reasonable default values. By allowing new features to be nullable by default, we push more responsibility to the application logic for determining what might be the right behavior.
-
Because making types nullable is so easy in practice, it promotes not considering if data should even be nullable or not. This could escalate the system's entropy more quickly making it hard to reason about the system's intended behaviour.
I'd love to hear other thoughts or ideas on this!
raviqqe, tj, ajhyndman, jaredly, pulasthibandara and 14 more
Metadata
Metadata
Assignees
Labels
No labels