default null syntax
Open
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
Description
Motivation: when `?.` is means we can call `select` on a `nullable` value, but it still throws `Field does not exists` exception.
What about using a `obj.b?` or `obj['b'?] syntax to express: if `b` does not exists in `obj` , then return `null` instead of an error.
- obj.b?
- obj["b"?]
or, we can just use `std.get` method
Contributor guide
Assessment
This issue has not been assessed yet.