4 ms·
What's really the ergonomic difference between "traditional scripting languages" and Go? I came up writing professional C code, and spent most of the last 15 ye
by tptacek 7y ago
What's really the ergonomic difference between "traditional scripting languages" and Go? I came up writing professional C code, and spent most of the last 15 years writing "traditional scripting language" code, and Go feels a lot closer to scripting than to C to me, despite compiling down to machine code.
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.
- zozbot234 7y ago> 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.
- freyr 7y ago> 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.
- doteka 7y agoThat rise has been entirely accounted for by machine learning and data science. Python as a language for actual software engineering has been slowly dying for a while now.
- rtpg 7y agoIt’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.