Skip to Content
iOS 10 SDK Development, 1st Edition
book

iOS 10 SDK Development, 1st Edition

by Chris Adamson, Janie Clayton
March 2017
Intermediate to advanced
264 pages
7h 26m
English
Pragmatic Bookshelf
Content preview from iOS 10 SDK Development, 1st Edition

Returning Tuples

So far, we’ve taken a thorough tour of what Swift offers for object-oriented development. In a lot of languages, that would be enough. But in Swift, it’s only half the story.

Swift is great for object-oriented programming, but it also allows for more of a functional programming style. In functional programming, there’s an emphasis on passing data around, instead of maintaining state in classes and mutating it all the time.

One significant trait of functional programming is that it’s better to pass values to and from functions, rather than references. If we have an object of some class, and two parts of our code can modify its data at the same time, it can lead to confusing bugs. In functions, we generally want to pass the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson, Jeff Lamarche
More iPhone Development with Objective-C

More iPhone Development with Objective-C

David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

Publisher Resources

ISBN: 9781680502572Errata Page