Swift’s guard keyword

Reading this article I noticed great benefits using Guard Here you can compare the use of guard with an example: This is the part without guard: func fooBinding(x: Int?) { if let x = x where x > 0 { // Do stuff with x x.description } // Value requirements not met, do something } … Read more