hi.
It looks like this is an implementation for the swift guard let.
Do you think it is a bit misleading to call it just guard?
guard condition else { return }
The guard statement is an early-exit function.
According to Swift.org:
A guard statement is used to transfer program control out of a scope if one or more conditions aren’t met.
N.B. I was looking for a kotlin version of a guard statement and ended up finding this repository.
hi.
It looks like this is an implementation for the swift
guard let.Do you think it is a bit misleading to call it just
guard?The guard statement is an early-exit function.
According to Swift.org:
N.B. I was looking for a kotlin version of a guard statement and ended up finding this repository.