Monday, March 28, 2016 [Tweets] [Favorites]

Swift Colon Care

Erica Sadun:

Since I started programming in Swift, I moved to the “Ash Rule” of left-hugging colons in all uses except ternary, up to and including dictionary references, protocols, etc.


Dave Abrahams clarified StdLib style on the Swift Evolution list today:

  • Full monty spaces for declarations and extensions
  • Left magnetism for providing values


Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment