Hacker News new | ask | show | jobs
by rswskg 969 days ago
Will throw this in here as it's been useful for errors if operating with try/catch
2 comments

try/catch has no problem, but the premise is that you know there will be errors been thrown. Say a function `divide`, you can barely tell that whether it will throw errors or not without looking into the source code.