Hacker News new | ask | show | jobs
by krzysz00 4568 days ago
Not to drag the thread off topic, but this seems like the kind of situation where a version of Haskell's Maybe or Either monads might come in handy, so you could write:

    do
      command1
      command2
      ...
and have the failures propagate automatically.