Skip to content

Add support for safe navigation operator (elvis operator) #297

@navrocky

Description

@navrocky

I'll try to explain my thoughts with the help of examples.

The variable var will be null if there is no obj key:

## set var = obj?

The variable var will be null if there is no obj key or obj exists but no obj.key exists:

## set var = obj?.key?

The variable var will be null if there is no obj key or throws if there is no obj.key exists:

## set var = obj?.key

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