by mmgutz · 10y ago · 0 comments
Is there a more elegant way to handle errors in a concurrent language than returning error values? In general, exceptions do not work well within async programming. Too many JavaScript developers use exceptions and I advise to return errors instead. At least Go is consistent.
Exceptions do work well with synchronous programming, which is Go's model.