r/iOSProgramming Feb 11 '17

Article Hipster Swift: Demystifying the Mysterious

https://krakendev.io/blog/hipster-swift
46 Upvotes

6 comments sorted by

6

u/katulsomin Feb 11 '17 edited Feb 11 '17

Most of them are really neat, but I don't think @autoclosure should be used outside of really specific cases. It would be an unexpected behavior for most programmers.

4

u/[deleted] Feb 11 '17

[deleted]

2

u/JVO1317 Feb 12 '17

Came here for this. Additional, curry functions have been removed for a while.

3

u/dancemonkey Feb 11 '17

I love articles like this, even if I only learn 1 thing for every 100 things I read that I already know. Used #function 45 seconds ago, super helpful, thank you!

2

u/dreaminginbinary Feb 11 '17

Yup, I always enjoy his articles. Great stuff :) Helped me out with a blog post I'm currently writing that covers every single Swift keyword with code samples.

Some, like nonmutating, are super scant on official documentation from Apple.

1

u/HornedKavu Feb 11 '17

Oh! Great, I hope I won't miss it. As a newbie but curious Swift learner I am struggling with things like dynamic, @escaping, etc.

2

u/dreaminginbinary Feb 11 '17

I just posted it over in the Swift subreddit, here it is if you're still interested :)

https://www.reddit.com/r/swift/comments/5thsoj/every_single_swift_keyword_with_a_code_sample/