3 ms·
Swift is a neat looking language. I haven't gotten to play with it yet, but I have read Apple's "The Swift Programming Language" cover to cover and I come away
by exelius 12y ago
Swift is a neat looking language. I haven't gotten to play with it yet, but I have read Apple's "The Swift Programming Language" cover to cover and I come away with a few concerns.
My biggest issue with Swift is that there often seem to be too many ways to do things. I'm fine with having options, but when there are literally 4 or 5 different ways to accomplish the same things it's going to require development shops to come up with rigid standards about how to do things. Many shops aren't going to know that this will be an issue until later, when trying to integrate the work of different developers / teams on a large project.
The upside of this level of flexibility is that it allows you to quickly port code from nearly any language into Swift since it supports the features of almost every modern language. The downside, of course, comes when starting a new project: you have a lot of decisions to make about how functions will be called, objects instantiated and referenced, etc. If you don't make those decisions up-front, peoples' preferences will take over and you'll get a lot of spaghetti code. I'm not looking forward to starting a project in Swift, that's for sure.
From a technical perspective, I have no complaints: Swift is flexible and powerful without being weighed down by the kludges that Objective-C forced you into. But I definitely see small dev shops having a big advantage with Swift in the beginning: it'll simply take the big guys too long to get their act together.
- joncooper 12y ago> My biggest issue with Swift is that there often seem to be too many ways to do things. This is my biggest issue with the Apple libraries in general. It's an artifact of the software's bloodline running back to the 80s.
- exelius 12y agoYeah but I get it with libraries: you've gotta provide compatibility so preserving old ways of doing things is fine. With a new language like this, it's just making one of the biggest problems with Objective C even worse.
- doctorwho 12y agoApple has never cared about backward compatibility. They kill off libraries and APIs like unwanted kittens. Yes, it makes everyone sad when they do it, but the API still goes into the burlap bag and then into the pond. They continue to break software with each now OSX release.