Anonymous
8/3/2025, 8:55:47 AM No.106124169
You guys are missing the point of exceptions vs errors. Exceptions are nice for when I have no idea what kind of error's gonna happen, I want to catch it and send it to Sentry or Datadog and tell a user "sorry". Happens all the time in webdev and I've rarely ever seen anyone using Exceptions for anything else. Errors are a way for a function to tell you it cannot proceed, it is literally like returning null in a duck typed language where you can return whatever. So really not an actual error, but more like a signal that a function couldn't compute. So you ideally want both mechanisms. But more importantly, you want to write code with minimum amount of explicit error handling, because it's retarded to have both try/catch or err != nil be half of your codebase. Don't be a retard.
Replies: