DEV Community

Discussion on: How can I learn to like Golang? (and use it a lot)

Collapse
 
benzo profile image
Ben

If these are the only things to not like about Go, that is pretty good for a programming language.
Go is standardised by design. Its “limitations” is more a fact of simpler design. Working on multiple projects with many developers, Go code always looks the same. There are not many ways to be super clever and fancy which leads to easier collaboration and improved readability.

Collapse
 
robbiegm profile image
RobbieGM

That sounds like a fancy way to say "Go lacks many important features"

Collapse
 
benzo profile image
Ben

Generics I agree. What else are those important features that you miss?

Thread Thread
 
robbiegm profile image
RobbieGM • Edited

I was mostly talking about generics, but it also lacks proper exceptions, enums, and two ways to assign a variable (var and :=) among other things

Thread Thread
 
mikeschinkel profile image
Mike Schinkel

Lacking proper exceptions is one of Go's best features. Consider:

Collapse
 
lffg profile image
Luiz Felipe Gonçalves

Totally agree with you. The only real problem I see with Go is the lack of generic types. That one is a harsh.

At least they are planning to add it in the future.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I haven't tried Golang much, but I still have to compare Golang to Kotlin, if I want it strict.

For non-strict, I would still use TypeScript.

Perhaps Generics mean some convenient inheritance???

Thread Thread
 
lffg profile image
Luiz Felipe Gonçalves

Here is the TypeScript documentation about genetics:
typescriptlang.org/docs/handbook/g...

I’ve never used Kotlin, but I believe that it has generic-like features, like Java.

Collapse
 
ryands17 profile image
Ryan Dsouza • Edited

+1 for this. The lack of generics make writing more code which is why I prefer how TypeScript and Rust has handled the type system.

Collapse
 
serhatteker profile image
Serhat Teker

Agree; those what makes Go Go and what makes Go so good.