by Grustaf · 9y ago · 0 comments
For the first few days after the announcement I couldn't see the point of Swift, why did Apple feel they needed a new language? It's not like there was a dearth of developers in objc. I started reading the Swift book from Apple though, and when I finished it a few days later I was hooked. Since then I haven't voluntarily written a single line of objc.
Of course circumstances may vary but for us migrations between Swift versions, even the biggest ones, have never taken more than 2 hours. Learning the new syntax as a developer I see exclusively as a positive, it's exciting to see how it develops. WWDC is Swift Christmas.
Again, each project and each developer is different but I can't shake the feeling that at least some of the objections raised by obj c diehards sound like pretexts, especially the talk about the language being in flux. It's not like you're forced to adopt the new version immediately, and in any case APIs also change. It's just part of the job. And Swift can't improve if it's not allowed to evolve.
- Many examples are older, and don't compile anymore.
- Code maintenence costs increase for long term "write it and forget it" code.
I don't have a hrose in this race, but when I heard Swift was making breaking changes, I had an immediate negative reaction.
Migrating code to newer versions is seldom a big problem, and it’s even smoother now when you can run several versions in the same app.