this post was submitted on 16 Jun 2023
6 points (100.0% liked)

C Sharp

1537 readers
3 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 2 years ago
MODERATORS
 

Another one of my C# articles, this time about Nullable.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] porgamrer 2 points 2 years ago (1 children)

I've found C# nullable types quite frustrating, because nullable generics don't work properly when they can be instantiated with both value types and reference types.

It feels like a very hacky approximation of an option type, which we are now probably stuck with. Compared to all the other amazing features they've added, that one felt a bit half baked.

[โ€“] [email protected] 2 points 2 years ago

To be honest I feel the same way about it now.