Login
You're viewing the ruby.social public feed.
  • Nov 1, 2026, 8:25 PM

    @diazona Yes, it has its merits. It's good for logging or alerting the user. You get those if/else branches for free ("using {item}" vs. "no item found").

    In another reply, somebody suggested that the try/except block also makes it clear that using the fallback case is exceptional, not the norm.

    💬 0🔄 0⭐ 0