• fkn@lemmy.world
      link
      fedilink
      arrow-up
      18
      arrow-down
      5
      ·
      11 months ago

      Exceptions don’t exists and ask errors must be handled at every level. It’s infuriating.

      • planish@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        11 months ago

        I actually kind of like the error handling. Code should explain why something was a problem, not just where it was a problem. You get a huge string of “couldn’t foobar the baz: target baz was not greebleable: no greeble provider named fizzbuzz”, and while the strings are long as hell they are much better explanations for a problem than a stack trace is.

        • GlitchSir@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          I think you missed a memo. Exceptions are bad and errors as values are in… I’ll have Harold forward it to you