News for hackers. Stuff that matters.
Re:“I'm basically giving myself a permanent vacation from be... by marcosdumay on Thursday July 12, 2018 @04:34PM (#17518376)
Many languages solve that with pattern matching, like in Haskell:

    case f <...> of
        Nothing -> -- Handles the problem values
        Just m -> -- do stuff with m
This is, honestly, much better than an assignment expression. Side-effect expressions always bring problematic cases.

There are no comments on this comment yet.