3 ms·
> The main problem with non-nullable types is that the static analysis involved doesn't work for object fields., so you can't write code like this You shouldn'
by masklinn 16y ago
> The main problem with non-nullable types is that the static analysis involved doesn't work for object fields., so you can't write code like this
You shouldn't get to write code like that anyway. It's C. It's crap.
Here's what you write:
object.some_field.notNull(f => f.foo())
and that's only valid if some_field is of type Nullable<whatever>.