Closed jam01 closed 1 year ago
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
null
Edit: realized that this is something that would have to be added to jsonnet first. I've opened the same item on that project.
Gonna close this for now; we can re-open it when it's implemented upstream
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-callswould return
null
instead of throwing an errorEdit: realized that this is something that would have to be added to jsonnet first. I've opened the same item on that project.