|
|
|
|
|
by noisy_boy
1864 days ago
|
|
I think we shouldn't point fingers at Java when it comes to Go's verbosity. I can simply do dict.contains("foo") in Java vs having to go through a verbose hoop: if val, ok := dict["foo"]; ok {
//do something here
}
Common operations like filtering/transforming a collections are very concise in Java - I'm certain doing so in Go will take atleast 5x as many lines: collection.stream().filter(...).map(...).collect(...)
Don't get me started on having to go through iota hoops to declare enums. |
|
At least that's the kind of thing I've heard about other verbose things you need to do in Go.