Hacker News new | ask | show | jobs
by bkeroack 3899 days ago
Since Go is statically-typed and compiled, it's much easier to refactor a function compared to Python. Change it and fix everywhere the compiler complains.
2 comments

That's fine for internal functions, but a big problem when publishing any kind of interface. It's really nice to be able to extend an interface without breaking stuff or adding cruft.
true, forgot to think about that. But still potentially a lot of changes to fix, even if you are explicitly told what needs adjusting.
And this is where Go's tooling shines: https://golang.org/cmd/gofmt/

(Refactor automatically, not by hand.)