2

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@lemmy.world 1 points 1 year ago

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.

[-] sisyphean@programming.dev 1 points 1 year ago

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

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

C Sharp

1526 readers
1 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 1 year ago
MODERATORS