News for hackers. Stuff that matters.
Re:Gopher Wrangling. Effective error handling in Go by kaba0 on Tuesday June 20, 2023 @03:06AM (#36400659)
> I agree that go and rust have different areas, but that was less clear when they were getting started

That I agree with.

But Go is anything but modern on a language front. It shares almost nothing with Rust, which actually has a modern type system (from ML/Haskell).

Even if we disagree about exceptions (I do like them as they do the correct thing most of the time, while they don’t mask errors, but include a proper stacktrace), go’s error handling is just catastrophic, being an update from c which is even worse is not a positive.

Re:Gopher Wrangling. Effective error handling in Go by mtzet on Tuesday June 20, 2023 @04:29AM (#36401179)
I'm not arguying that go has modern tech, but rather that it has modern sensibilities. This means not trying to force 90s style OOP, preferring static linking for easier deployment, including a build system and package manager with the compiler and preferring static types with type inference to dynamic types.

This differentiates go, rust, zig, odin etc., from languages like C++, Java, C#, Python etc. I think it makes sense to describe that difference as one of modern sensibilities.

Re:Gopher Wrangling. Effective error handling in Go by preseinger on Tuesday June 20, 2023 @07:48AM (#36402696)
go's error handling is not catastrophic, it is very good