since a throw ensures that the rest of the function body doesn't run, why not individual when-let
clauses instead of nested if-let
?
Will that reduce the deep nesting? Not quite getting what you meant. Edit: I think I get it. I misread the comment the first time.