Re:Go + Services = One Goliath Project
by zozbot234 on Saturday December 21, 2019 @06:25PM
(#21853939)
> Go has static types, and that distinguishes it from Python, Ruby, and Perl.
It also has interface{} and that's a non-trivial commonality with Python, Ruby and Perl.
It’s usually the DSL argument. In Go you can establish calling patterns for errors, but you’re really limited in terms of providing libraries with nice APIs that prevent you from making mistakes.
In Python you have a lot of ways to make sure someone does a thing. Exceptions are good for making sure an error is handled. Context managers make sure a resource is cleaned up properly.
I might be wrong but I feel like writing something like jquery (with its fluent API) would be really tough in Go.
> 2005-era Python was wrong about that.
Given Python's incredible rise since 2005, and even in the past few years, I'm not sure we can say they were "wrong." It's serves a purpose.
Go has static types, and that distinguishes it from Python, Ruby, and Perl. But the trend now seems to be for languages to move towards static typing anyways; 2005-era Python was wrong about that.