MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/7oaay5/really/ds9gqkf
r/Python • u/fabrikated • Jan 05 '18
317 comments sorted by
View all comments
Show parent comments
1
What can't you null in C#?
1 u/chusk3 Jan 06 '18 reference types (ie classes) can be null, but currently can't be typed as possibly null. The benefit would come from saying that a certain thing can never be null in the type system, which you can't do in C# now 1 u/traway5678 Jan 06 '18 edited Jan 06 '18 Everything can be null, with nullable.You can make non-nullable types, aka values, with structs as well.The benefit would come from saying that a certain thing can never be null in the type system, which you can't do in C# nowOh that's not what he said tho.
reference types (ie classes) can be null, but currently can't be typed as possibly null. The benefit would come from saying that a certain thing can never be null in the type system, which you can't do in C# now
1 u/traway5678 Jan 06 '18 edited Jan 06 '18 Everything can be null, with nullable.You can make non-nullable types, aka values, with structs as well.The benefit would come from saying that a certain thing can never be null in the type system, which you can't do in C# nowOh that's not what he said tho.
Everything can be null, with nullable.
You can make non-nullable types, aka values, with structs as well.
The benefit would come from saying that a certain thing can never be null in the type system, which you can't do in C# now
Oh that's not what he said tho.
1
u/traway5678 Jan 06 '18
What can't you null in C#?