• toastal@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    11 months ago

    If you use your type system to make invalid states impossible to represent & your functions are pure, there less—maybe nothing—to test, which will save you from this scenario.