The Swift Developer's Cookbook (includes Content Update Program) (Developer's Library) by Erica Sadun

The Swift Developer's Cookbook (includes Content Update Program) (Developer's Library) by Erica Sadun

Author:Erica Sadun [Sadun, Erica]
Language: eng
Format: azw3
Publisher: Pearson Education
Published: 2015-12-14T16:00:00+00:00


Declaring Protocols

Every protocol has a name that describes the type-specific qualities the protocol establishes. When establishing protocols, choose capitalized names that describe the role conforming types will fulfill. For example, the Equatable protocol mandates types that can be equated. The Comparable protocol that builds on Equatable adds ordering nuance to equivalence. Comparable types can describe binary relations like “greater than or equal to” and “strictly greater than” between ordered elements.



Download



Copyright Disclaimer:
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.