3 ms·
> My cardinal rule in Go is just don't use interfaces unless you really, really need to and there's no other way. They do make some sense for swappable doodahs
by zimpenfish 11mo ago
> My cardinal rule in Go is just don't use interfaces unless you really, really need to and there's no other way.
They do make some sense for swappable doodahs - like buffers / strings / filehandles you can write to - but those tend to be in the lower levels (libraries) rather than application code.