• Kogasa
    link
    119 days ago

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

    • @[email protected]
      link
      fedilink
      219 days ago

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

      • Kogasa
        link
        019 days ago

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

    • @[email protected]
      link
      fedilink
      English
      -119 days 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.