Re:Backwards compatibility in Go (2015)
by nothrabannosir on Wednesday January 11, 2017 @08:47PM
(#13379235)
> Changing a function/method signature
Another reason for methods is a user could have created an interface based on your method, and assigned your implementing object to a variable of that type. Changing the method signature makes that assignment invalid.
Another reason for methods is a user could have created an interface based on your method, and assigned your implementing object to a variable of that type. Changing the method signature makes that assignment invalid.