Java and C# for instance despite being much higher level languages tend to require far more verbose code.
I have played with some crypto code and concurrency in all languages to compare and was pleasantly surprised by how much more compact Go code ended up being while also being easy to read and using fairly simple constructs.
You can often get smaller Java and C# code but at the expense of using far more complex and abstract concepts.
There is a sense of good balanced taste in how Go featured and libraries are made which often lacks in many other languages.
I do find Go's error handling annoying but rust seems similar for line noise. It's more compact noise, but it's all there.
The issue is having to write `if err != nil { return nil, err }` versus `func()?`. The former gets old really fast.
Not to mention the other benefits of monadic error handling when compared to glorified error codes.
func()? desugars to (more or less)
match func() {
Ok(v) => v,
Err(e) => return Err(e.into())
}
I'm also not really sure what the complaint is. Go doesn't do any more implicit type conversion than Rust does. There are numerous solid arguments for Go over Rust, but error handling and automatic type punning aren't on the list.Sure. If “fair” means “not comparable at all”.
if-condition-return using two variables is not comparable to one function/macro call.
code poetry right there. it's so good that you have to repeat this over and over again!