Comment by LtWorf
6 days ago
Saying that go has good error handling is… bold.
Letting google implement a new language for the web would probably result in something even worse than javascript.
6 days ago
Saying that go has good error handling is… bold.
Letting google implement a new language for the web would probably result in something even worse than javascript.
I wouldn't call it good, but Go was designed for applications performing large numbers of concurrent processes. It is really easy to just wrap a block of imperative code in a try/catch, but it becomes much more difficult when you have a bunch of different goroutines communicating over channels producing outputs at indeterminate times. Like you need bespoke error handling for every use case, you can't just say: "400 try again later".
Python has async and try blocks, what's the problem with having both exactly?
> Letting google implement a new language for the web would probably result in something even worse than javascript.
Why? Javascript was famously written in ten days, was intended for casual scripting, and has not made up its mind whether it wants to be a Java or a Scheme. What could google invent that would be worse?
Because go is a poorly designed language as well, with terrible error handling.