git.delta.rocks / jrsonnet / refs/commits / 03295b7df8f8

difftreelog

doc: null coalescing

Yaroslav Bolyukin2023-07-26parent: #4e0dbf4.patch.diff
in: master

1 file changed

modifieddocs/features.mddiffbeforeafterboth
154}154}
155```155```
156156
157## `exp-null-coalescing`
158
159Provides a new operator and new indexing syntax sugar:
160
161`a ?? b` - equivalent to `if a == null then b else a`
162
163`a?.b`, `a?.['b']` - equivalent to `if a != null then std.get(a, 'b', null)`
157164