A collection of tools for dealing with nulls, failures and the generic type issues that arise in this domain.

https://github.com/Andy3432344/SafeResults

I’m the author, let me know what you think!

*Edit: updated to show GitHub link, sorry!

  • eluvatar@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    At least for this specific example I don’t know why I wouldn’t use null instead of option and ?? As it’s more clear what’s happening as it’s standard C#

    Also in your example does the function to the right of | execute always?