News for hackers. Stuff that matters.
Re:C#: No, you don’t get to use the “as” operator any more by masklinn on Friday April 29, 2011 @05:06PM (#2498993)
> 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>.

There are no comments on this comment yet.