Earlier quoted context omitted.
Not a "Go guy" but I try to keep up on the news. They've since added generics and cleaned up some of this since 2020 yeah?
This submission came up because the article author is on twitter today complaining about golang and posted the submission link.
I want off Mr. Golang’s Wild Ride (2020)
21–30 of 477 posts
Re: I want off Mr. Golang’s Wild Ride (2020)
#22Re: I want off Mr. Golang’s Wild Ride (2020)
#23Earlier quoted context omitted.
This submission came up because the article author is on twitter today complaining about golang and posted the submission link.
Link?
No idea what HN's policy is on posting links to Twitter, but since you asked. Also if the consensus here is that that 2020 rant is "unfair and toxic", that twitter thread is not going to go over well either!
Re: I want off Mr. Golang’s Wild Ride (2020)
#24Re: I want off Mr. Golang’s Wild Ride (2020)
#25Re: I want off Mr. Golang’s Wild Ride (2020)
#26For example, Go error handling is shit. People will attempt to fix it with generics now and that will create a lot of inconsistency between different APIs. Because of those inconsistencies the entire language will loose any possibility of elegant, high-level, pre-packaged solutions for certain things (like automated logging, recovery, etc.) This loss will be permanent and the vast majority of users won't even understand why some things are so hard.
Re: I want off Mr. Golang’s Wild Ride (2020)
#27> This function signatures tells us a lot already. It returns a Result, which means, not only do we know this can fail, we have to handle it. Either by panicking on error, with .unwrap() or .expect(), or by matching it against Result::Ok / Result::Err, or by bubbling it up with the ? operator.
What the hell? I'm not a rust dev. I have no idea what half of this means. "bubbling up"? What the fuck even is that?
Re: I want off Mr. Golang’s Wild Ride (2020)
#28Re: I want off Mr. Golang’s Wild Ride (2020)
#29To say go's simplicity is a lie, then to go and and say this; > This function signatures tells us a lot already. It returns a Result, which means, not only do we know this can fail, we have to handle it. Either by panicking on error, with .unwrap() or .expect(), or by matching it against Result::Ok / Result::Err, or by bubbling it up with the ? operator. What the hell? I'm not a rust dev. I have no idea what half of…
Re: I want off Mr. Golang’s Wild Ride (2020)
#30To say go's simplicity is a lie, then to go and and say this; > This function signatures tells us a lot already. It returns a Result, which means, not only do we know this can fail, we have to handle it. Either by panicking on error, with .unwrap() or .expect(), or by matching it against Result::Ok / Result::Err, or by bubbling it up with the ? operator. What the hell? I'm not a rust dev. I have no idea what half of…