Swift, and why it hurts you (from an GNUStep developer)
heronsperch.blogspot.com
Swift, and why it hurts you (from an GNUStep developer)
1–10 of 60 posts
Re: Swift, and why it hurts you (from an GNUStep developer)
#2Re: Swift, and why it hurts you (from an GNUStep developer)
#3Disagree. JavaScript isn't even strongly typed. Swift affords many imperative and functional techniques, but that doesn't make it JavaScript-like.
"The real purpose behind this language, however, is a little darker. I believe that it's ultimate purpose is lock-in. The more developers start using Swift the less they are going to be able to move to other platforms (such as Android)."
By this logic we should all be using Java. Now ask yourself: Should we, really?
Re: Swift, and why it hurts you (from an GNUStep developer)
#4Did you seriously expect Apple to ship a cross-platform development solution ?
Re: Swift, and why it hurts you (from an GNUStep developer)
#5Re: Swift, and why it hurts you (from an GNUStep developer)
#6Swift has some pretty nice features to improve programming safety such as stronger static typing, type inference (not as good as functional languages), a very nice syntax for option types, discriminated unions, pattern matching, improved focus on immutability. It's impressive that Swift introduces all these functional goodies without programmers having to blow a socket trying to convert completely to pure functional programming.
For example the Intermediate Swift presentation at WWDC 14 has a pretty elegant way to implement elements of what Scott Wlaschin calls 'railway oriented programming' (http://fsharpforfunandprofit.com/posts/recipe-part2/).
As much as I love functional programming I think they've done a pretty good job supporting Cocoa development and improving programming safety. My hope is that Swift will be a gateway drug for FP.
Re: Swift, and why it hurts you (from an GNUStep developer)
#7Re: Swift, and why it hurts you (from an GNUStep developer)
#8Apple created a programming language for their platform. Use it or don't.
Re: Swift, and why it hurts you (from an GNUStep developer)
#9Re: Swift, and why it hurts you (from an GNUStep developer)
#10Its true that Apple imposes limitations for its own profit and the benefit of the users. But it does not lock in anyone.
So no Swift is no big conspiracy. Its just a move forward for Apple to attract more developers and give android java a run for its money in terms of performance and ease of use. Apple sends the statement "not only we are a platform with less worries on incompatible hardware, but now we even offer a powerful yet easy to use language". A wise move from Apple and a big plus for developers.