Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: