20 ms·
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.
by bkeroack 11y 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.
- jgalt212 11y agotrue, forgot to think about that. But still potentially a lot of changes to fix, even if you are explicitly told what needs adjusting.
- logic 11y agoAnd this is where Go's tooling shines: https://golang.org/cmd/gofmt/ https://golang.org/cmd/gofmt/ (Refactor automatically, not by hand.)
- TillE 11y agoThat'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.