by ainar-g · 9y ago · 0 comments
>If you finally have the opportunity to break backwards-compatibility, just do it.
I think Russ explained pretty clearly why this is a bad idea. Remember Python 3? Angular 2? We don't want that to happen with Go 2.0.
>Additionally, I'm of the opinion that more projects should adopt faster release cycles.
I am of the opposite opinion. In fact, I consider quick releases to be harmful. Releases should be planned and executed very carefully. There are production codebases with millions of lines of Go code. Updating them every month means that no progress will be made at all. The current pace is very pleasant, as most of the codebases I work with can benefit from a leap to newer version every six months.
The problem with Python 2/3 is that Python 3 didn't add enough new features to make people want to move to 3.
The problem with Angular 2 is that it just didn't know what it wanted to be.
If Go2 doesn't break enough yet still break it will be no different from Python 2/3 fiasco.
Go has serious design issues, the go team ignoring them hindered Go adoption pace at first place.
As an aside, since you're making the distinction, can you have meaningful benefit without breakage? Eg, you're specifically separating the two - so can you have significant improvements without breakage?
It would seem that pretty much any language change, from keyword changes to massive new features, breaks compatibility.
Sure, in two ways:
(1) Performance improvements with no semantic changes.
(2) New opt-in features that don't break existing code (such as where code using the new feature would have just been syntactically invalid in the old version, so the new feature won't conflict with any existing code.)
There be no reason for SemVer minor versions if you couldn't make meaningful improvements while maintaining full backward-compatibility.
One way is by having a new language feature which does not interact with anything else in the old version of the language, i.e. is orthogonal.
Break early and then stabilize for a long time; just make sure everybody knows the plan.
Which emphasises even more the fact that large private codebases really dislike breaking changes.