Why Go makes it easier (than Python or Java) to write good code
As a CS professor and longtime Go and Java developer, I’d like to
share some of my thoughts and explain why I prefer Go
to Java or Python –
Go makes it much easier for me to write good code. Here are some core Go features:See Go vs. Java: 15 main differences for a small code example,
and a sample of basic data types, methods and control structures. Generics in Java,
implemented by type erasure,
make some code cleaner and allow for additional runtime checks,
but quickly become complex when you move beyond basic examples:
generic arrays aren’t supported
and type wildcards
with upper and lower bounds are quite complicated.
Source: yourbasic.org