defer in Swift

defer is used to define the set of statements that should be executed just before the control leaves the current scope of execution. The statements defined in defer block are executed irrespective of how the execution control leaves the scope in which defer is defined. The statements defined in defer block are executed just before… Continue reading defer in Swift

guard In Swift

guard keyword, as the name suggests, guards the execution in Swift. Either you meet the condition, or just get out of here. The syntax for guard goes like this If you know swift you would be knowing that the condition here should be Bool. The else clause is compulsory with guard. If the condition in… Continue reading guard In Swift