google / google/jsonnet

Safe select operator

Open
#930 6 comments 3 reactions 0 assignees View on GitHub
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

It would be useful to have a selector notation that was null safe. Perhaps `?.` as Kotlin has https://kotlinlang.org/docs/null-safety.html#safe-calls

```
{x: 1}?.y
```
would return `null` instead of throwing an error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.