Imzy
  • Discover communities
  • Log In
  • Sign up
  • Home
  • Discover communities
  • Log In
  • Sign up
  • About
  • Learn More
  • Contact
  • Community Policy
  • FAQ
  • Sitemap
  • Terms
  • Privacy Policy
  • Available on the App Store
  • Available on Google Play
Copyright © 2017 Saurus, Inc. All rights reserved.
Swift

Swift

Apple Swift Programming Language

126 members
Posted bytulushevin/swift-May 01, 2016 at 3:06 PMΔ

Protocol-Oriented Logging, or: Default Arguments in Swift Protocols

  • Article

Protocol-Oriented Logging, or: Default Arguments in Swift Protocols

Swift 2.2 doesn't allow default arguments in protocol declarations. This is a problem if you want to create a protocol that acts as an abstraction for logging. However, we can use default arguments in protocol extensions, and that allows us to work around the problem.

oleb.net
No comments
Swift

Swift

Apple Swift Programming Language

126 members
  • About
  • Sitemap
  • Terms and Conditions
  • Privacy Policy
  • Copyright © 2017 Saurus, Inc. All rights reserved.