Closed copybara-service[bot] closed 3 years ago
More adjustments to null-handling to be more like Velocity.
The syntax $!foo is the same as $foo except it is allowed to be null, with the same meaning as an empty string.
$!foo
$foo
A #foreach loop can iterate over a null value, which is an empty iteration.
#foreach
Division by zero produces null rather than an exception.
"Arithmetic" on null operands is allowed and produces null.
Inequalities (<= etc) are still not allowed on null operands.
<=
RELNOTES=Null-handling is more like Velocity, in particular with the $!foo syntax.
More adjustments to null-handling to be more like Velocity.
The syntax
$!foo
is the same as$foo
except it is allowed to be null, with the same meaning as an empty string.A
#foreach
loop can iterate over a null value, which is an empty iteration.Division by zero produces null rather than an exception.
"Arithmetic" on null operands is allowed and produces null.
Inequalities (
<=
etc) are still not allowed on null operands.RELNOTES=Null-handling is more like Velocity, in particular with the
$!foo
syntax.