ae468441dc
Implements a null coalescing operator in painless that looks like `?:`. This form was chosen to emulate Groovy's `?:` operator. It is different in that it only coalesces null values, instead of Groovy's `?:` operator which coalesces all falsy values. I believe that makes it the same as Kotlin's `?:` operator. In other languages this operator looks like `??` (C#) and `COALESCE` (SQL) and `:-` (bash). This operator is lazy, meaning the right hand side is only evaluated at all if the left hand side is null. |
||
---|---|---|
.. | ||
advanced-scripting.asciidoc | ||
expression.asciidoc | ||
fields.asciidoc | ||
groovy.asciidoc | ||
native.asciidoc | ||
painless-syntax.asciidoc | ||
painless.asciidoc | ||
security.asciidoc | ||
using.asciidoc |