|
|
|
|
|
by kweingar
1366 days ago
|
|
You could do that, but it doesn’t work with interfaces. The Go style just lets your code live together for easy reading, no problem. You can comfortably fit all of this into one file: a one-function interface, a couple of small functions that take the interface as a parameter, and two implementations of the interface. Compare this to 3 or 4 tiny Java files. You’d have to guess which one to click on first. |
|