4 ms·
But the "older code" is already written. And it's written with meaning "a null may occur". It doesn't seem to change anything related to legacy.
by splix 2y ago
But the "older code" is already written. And it's written with meaning "a null may occur". It doesn't seem to change anything related to legacy.
- demurgos 2y agoAgreed that the type system treated `T` as nullable, but code may also have comments, annotations and invariants placing stronger constraints. This means that "a null may occur" also lived with "this won't ever be null but the type system does not let me express it" and in the absence of marker it's hard to distinguish both cases.