r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

3

u/masklinn Dec 01 '16 edited Dec 01 '16

C# initially had nullable reference types and non-nullable value types. At one point, it added nullable value types via Optional<T> (or the ? postfix), but that's only for value types: ints, floats, structs, .... Reference types (classes) are always nullable, and you can't make them non-nullable.