Skip to content

reanme to "guard let" #2

@andybezaire

Description

@andybezaire

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions