Similarities between Swift and Scala, and what can we learn from that as iOS/Mac developers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Similarities between Swift and Scala, and what can we learn from that as iOS/Mac developers

Javier Siloniz Sandino
Hi! I wanted to see what are your opinions on this matter. In my current company (47 Degrees LLC) we're doing a lot of stuff related to functional programming (specially in Scala), and I've taken upon myself to try to spread that knowledge and experience in my area of expertise (iOS and Swift currently).
What do you think about this? Do you think Swift is actually closer to functional programming than Objective-C? Are we on a easier route to functional development for iOS and Mac now? Is it worthy at all?

I've explored this subject a little bit in this article for my company's blog. It includes a Playground version of it so you can play out with some of the basic examples I use, and at the end you'll find a GitHub repo containing a small app/game done I've put up in SpriteKit to make some use of this new functional stuff we're getting in Swift.

Looking forward to hearing your thoughts about this! :)

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/847659a1-64ba-4cca-bd65-0ab255ce2c3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Similarities between Swift and Scala, and what can we learn from that as iOS/Mac developers

Jens Alfke

On Mar 12, 2015, at 3:36 AM, Javier Siloniz Sandino <[hidden email]> wrote:

What do you think about this? Do you think Swift is actually closer to functional programming than Objective-C? Are we on a easier route to functional development for iOS and Mac now? Is it worthy at all?

Sure. I’ve seen a lot of blog posts about functional programming in Swift, and the objc.io folks wrote a whole book about it.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/5FB102D0-9225-458F-A159-635E007F0738%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Similarities between Swift and Scala, and what can we learn from that as iOS/Mac developers

Javier Siloniz Sandino
Thanks for the info, Jens!! I will take a grasp at the objc.io book asap!! :D



On Thursday, March 12, 2015 at 5:59:51 PM UTC+1, Jens Alfke wrote:

On Mar 12, 2015, at 3:36 AM, Javier Siloniz Sandino <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_KCIUBrizHkJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">javie...@...> wrote:

What do you think about this? Do you think Swift is actually closer to functional programming than Objective-C? Are we on a easier route to functional development for iOS and Mac now? Is it worthy at all?

Sure. I’ve seen a lot of blog posts about functional programming in Swift, and the <a href="http://objc.io" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fobjc.io\46sa\75D\46sntz\0751\46usg\75AFQjCNF5tTUd7OHE8BrKKEMgXs26FdWCPg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fobjc.io\46sa\75D\46sntz\0751\46usg\75AFQjCNF5tTUd7OHE8BrKKEMgXs26FdWCPg';return true;">objc.io folks wrote a whole <a href="http://www.objc.io/books/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.objc.io%2Fbooks%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHpvzLLearnQSsTt8bc5EUQSSF7YA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.objc.io%2Fbooks%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHpvzLLearnQSsTt8bc5EUQSSF7YA';return true;">book about it.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/ed217cf3-6ac4-4105-929f-83209b57f992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Similarities between Swift and Scala, and what can we learn from that as iOS/Mac developers

Decline To State
In reply to this post by Javier Siloniz Sandino
Definitely! Swift is amesome!

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/805f6ac4-ec77-41ab-9e83-2bba12ca0e7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.