Skip to content

Instantly share code, notes, and snippets.

@sharplet
Created October 22, 2015 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharplet/ba18377cf712e167a78d to your computer and use it in GitHub Desktop.
Save sharplet/ba18377cf712e167a78d to your computer and use it in GitHub Desktop.
A list of pros and cons to adopting Swift on new projects

Swift Pros and Cons

Pros

  • Code tends to be shorter & clearer
  • Value types are a super valuable design pattern (see what I did there)
  • Optionals are amazing
  • Online resources tend to be in Swift these days
  • Swift 2 is a lot better than Swift 1.2
  • Trending towards stability
  • Greater type safety means fixing bugs before they become bugs, refactoring with higher confidence, cleaner code

Cons

  • Xcode crashing
  • Breaking changes to Swift are bundled with Xcode, meaning that to reproduce old builds they need to be tied to the version of Xcode in use at the time
  • Xcode debugging isn't as good
  • Larger .ipa sizes (embedded Swift libs)
  • Less tooling support (things like automated code formatting + static analysis)
  • No stable ABI makes modular code higher cost
  • Slower compile times
  • Compiler errors are less mature, harder to debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment