Showing posts with label Software Design. Show all posts
Showing posts with label Software Design. Show all posts

Saturday, June 11, 2016

guard vs. if-let (Or: The Cost of Pyramids of Doom)

Recently read a post by Natasha The Robot after Apple introduced the 'guard' keyword in Swift 2.0. The article itself has good examples of code implemented with if-let vs guard, but the more compelling part of the post were in the comments themselves.