|
|
|
|
|
by throw_m239339
1567 days ago
|
|
> People who prefer golang use it _because_ it is verbose. I don't prefer Go because it is verbose, error as values without constructs to manage them is a pain in the ass. I'd use go over language X,Y or Z because of its standard library and ease of deployment. The language itself has great things but is verbosity, mainly when it comes to dealing with error C style, its absolutely not a feature. Now that we have generics, things will get more interesting. > Nothing is implicit and that makes good easy to read. I mean this is a language with garbage collection, that thing certainly is implicit. |
|
Coming from languages with exceptions, where you have no idea if a function call is going to explode without praying that the library has its exceptions documented or reading the source code, having error values that you cannot (easily) ignore is a blessing. It's not as good as something like Rust's Result sum type, but it's pretty close. It makes you explicitly handle, or bubble up, every error in your program which in my experience is a huge cause of unexpected exits in other languages.