For vs While – a Beginner’s approach Update

I have updated my very popular tutorial about loops for Xcode 7.3 and Swift 2.2.

Loops

There are two major changes in the updated version:

  • The postfix increment operator, prefix increment operator, postfix decrement operator and prefix decrement operator are all deprecated in Swift 2.2 – you will get a warning if you use them in Xcode 7.3 – and will be completely removed in Swift 3.0. You can read more about this here.
  • C-style for loops are deprecated in Swift 2.2 – you will get a warning if you use them in Xcode 7.3 – and will be completely removed in Swift 3.0. You can read more about it here.

You can read the tutorial’s updated version here.

Happy coding! 🙂

Advertisements
Posted in Swift

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: