Comment on Is it really a breaking change if a method changes output after an update?

o11c@programming.dev ⁨1⁩ ⁨year⁩ ago

As a practical matter it is likely to break somebody’s unit tests.

If there’s an alternative approach that you want people to use in their unit tests, go ahead and break it. If there isn’t, but you’re only doing such breakage rarely and it’s reasonable for their unit tests to be updated in a way that works with both versions of your library, do it cautiously. Otherwise, only do it if you own the universe and you hate future debuggers.

source
Sort:hotnewtop