• socOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    6 months ago

    Many languages’ Option and Result types suffer from an organically-grown and therefore inconsistently named set of functions that operate on them.

    We can do better! The article demonstrates how a full set of useful methods with predictable names can be derived from few, simple rules.

      • socOP
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

        Yeah, avoids pointless debates whether they should be lined up in matches or not. :-)