More generally, never allow rendering a null value. This is consistent with Apache Velocity. Previously we rendered the string null.
Improve error messages throughout by showing the reference where they occurred. For example, if $foo is null in $foo.bar($baz), we previously said Cannot invoke bar on null value. Now we say In $foo.bar($baz), $foo is null.
Add tests for many previously-untested error cases.
Implement the undocumented Velocity feature whereby $list[-1] means the last element of $list, which I discovered when writing the tests.
Make it an error to render
$foo
if it is null.More generally, never allow rendering a null value. This is consistent with Apache Velocity. Previously we rendered the string
null
.Improve error messages throughout by showing the reference where they occurred. For example, if
$foo
is null in$foo.bar($baz)
, we previously saidCannot invoke bar on null value
. Now we sayIn $foo.bar($baz), $foo is null
.Add tests for many previously-untested error cases.
Implement the undocumented Velocity feature whereby
$list[-1]
means the last element of$list
, which I discovered when writing the tests.