236
Anon discovers .NET (programming.dev)
submitted 11 months ago by starman@programming.dev to c/greentext@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] kogasa@programming.dev 1 points 11 months ago

You can also easily write your own option monad or use a tiny library that does.

[-] anus@lemmy.world 2 points 10 months ago

Good idea, then patch the whole standard library and dotmet framework and most popular libraries to use that tiny library

[-] kogasa@programming.dev 0 points 10 months ago

You don't need to use the same one. Just don't expose it publicly in libraries.

[-] anus@lemmy.world 0 points 10 months ago

This is the stupidest thing I've read all day

[-] kogasa@programming.dev 0 points 10 months ago
[-] AdamBomb@lemmy.sdf.org -1 points 10 months ago

Yeah, 100%. I don't really recognize the complaint that "it isn't in the standard library" as being super valid. If you know what an option monad is and you want to use one, you can certainly create one. Lots of people don't know what it is and won't miss it, especially in this context since the option monad is a functional construct and C# is an objects-first language.

this post was submitted on 09 Jun 2024
236 points (80.1% liked)

> Greentext

7941 readers
1 users here now

founded 3 years ago
MODERATORS