3 ms·
It’s not just public signatures, its also things like types—even private types. For example, if public struct type Foo has a private member of private struct ty
by weberc2 8y ago
It’s not just public signatures, its also things like types—even private types. For example, if public struct type Foo has a private member of private struct type bar, and private type bar is changed to add a field, this changes the public interface because the memory layout of the type has changed.
- ninkendo 8y agoeh... does this matter though? Go uses static linkage, you have to recompile your code when you update third party libraries anyway.
- kasey_junk 8y agoIt can cause behavior changes. Especially around memory usage & gc.
- pjmlp 8y agoThat is not longer the truth for quite some time now. Yes, Go uses static linking by default, but it also supports dynamic linking and also has a plugin concept built on top of it.