• towerful@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    Yeh, I’d just do early return.
    It’s not much more typing, and I find it easier to read and navigate specific conditional paths.

    Some built in pattern matching would be cool (like the when keyword), but I’m not going to force it into my code