Why Kotlin’s Elvis Operator is Better Than Swift’s Guard Statement
It’s similar but better

If you’ve programmed for iOS Swift before, you’ll find this interesting keyword, guard
, that helps to guard and ensure some condition is met or some variable is not null before proceeding.
func process(couldBeNullMesage: String?) {
guard let notNullMessage = couldBeNullMesage else {…