Live data from Hacker News

Swift 3.0 Released

swift.org

21–30 of 95 posts

Re: Swift 3.0 Released

#21
post #18

So is 3.0 when Swift is finally gonna settle into stability? Or are they gonna wait until 4.0 to stop breaking backwards compatibility?

AFAIK Swift is going to be source compatible going forward(don't quote me on that), but ABI stability is not going to be there until 4.0. EDIT: See steveklabnik's comment https://news.ycombinator.com/item?id=12495200

I have a link that says exactly this posted downthread.

Re: Swift 3.0 Released

#22

BREAKING again? Demotivating a lot.

We should all be so lucky that some other languages are willing to break backwards compatibility. Even C++ gurus like Scott Myers advocate that language finally breaking source compatibility [0]. Often, breaking compatibility is the only way to make a language better.

[0] http://scottmeyers.blogspot.nl/2015/11/breaking-all-eggs-in-...

Re: Swift 3.0 Released

#24
I look forward to using Swift in a couple of years when it is all stable. It looks great. Thanks to those of you using it now and contributing to its improvement.

Re: Swift 3.0 Released

#26
Holding off on learning much more Swift for now, until things stabilize and stuff stops breaking. Its not much fun to go back to learn some Swift only to discover things have changed since last time ..

Re: Swift 3.0 Released

#27

So is 3.0 when Swift is finally gonna settle into stability? Or are they gonna wait until 4.0 to stop breaking backwards compatibility?

Yes, at least that seems like the plan. Take the pain now in order to get it stable.

Re: Swift 3.0 Released

#28
post #24

I look forward to using Swift in a couple of years when it is all stable. It looks great. Thanks to those of you using it now and contributing to its improvement.

Swift 4 is supposed to be source compatible with Swift 3, so no need to wait.

Re: Swift 3.0 Released

#29

> It is not source-compatible with Swift 2.2 and 2.3. This created havoc in Python. Hopefully it won't happen here.

> This created havoc in Python. Hopefully it won't happen here. There are big differences though: * Python had 15 years of source-compatibility before the switch, Swift has 1 year and a history of source-incompatibility (Swift 2 was not source-compatible with Swift 1) * Python had a fair amount of semantic-incompatibility * Python doesn't have a (heavy) compiler backing it up making source and semantic incompatibilit…

It won't happen because Apple won't give you the option.

Swift 3.x has a large amount of syntax changes. The compiler helps with the refactoring but it's still work.

Re: Swift 3.0 Released

#30
post #3

> It is not source-compatible with Swift 2.2 and 2.3. This created havoc in Python. Hopefully it won't happen here.

Until now Swift has not promised source compatibility so the developers should be ready to rewrite their code for new versions. I would not be surprised if Swift 2.3 support were dropped in the next version of XCode completely. The migration tools are quite good though so going from 2.2 to 3.0 directly should not be much of a problem. I think that in Python the problem was/is that the 2.x was already a massively used…

External librairies can also support the migration by providing "fix-its" which helps the compiler display an helpful message whenever a Swift 2-era line has not been updated to Swift 3 (see for example this PR: https://github.com/groue/GRDB.swift/pull/114)
Post reply on HN