Swift Style: An Opinionated Guide to an Opinionated Language by Erica Sadun
Author:Erica Sadun [Sadun, Erica]
Language: eng
Format: azw3
Tags: Pragmatic Bookshelf
Publisher: Pragmatic Bookshelf
Published: 2017-03-30T04:00:00+00:00
switch statement targets of opportunity include any pattern matching that can be listed in a truth or state table. Refactor if statements that traverse multi-element truth tables.
When your switch statement is interested in only one case, consider whether it’s better represented as an if statement.
Combine the states that matter most into a unifying tuple and perform pattern matching against that tuple.
Use where clauses for logic that applies to only one or two cases at most.
Prefer wildcard (_) pattern matching when representing “don’t care” conditions, even when coding logic has narrowed that argument to one remaining value. Including an actual value detracts from the “don’t care” meaning.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6537)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6421)
Kotlin in Action by Dmitry Jemerov(5070)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3377)
Odoo 15 Development Essentials by Daniel Reis(2816)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2534)
Learning Angular - Second Edition by Christoffer Noring(2362)
Pride and Prejudice by Jane Austen(2351)
Mobile Forensics Cookbook by Igor Mikhaylov(2023)
Computers For Seniors For Dummies by Nancy C. Muir(2003)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1875)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1801)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1793)
1936941139 (N) by Bob Rosenthal(1735)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1728)
Hands-On Internet of Things with MQTT by Tim Pulver(1713)
Android App Development by Franceschi Hervé J.;(1709)
Ember.js in Action by Joachim Haagen Skeie(1691)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1658)
