1. ?? operator `$a ?? $b` is equals to `!empty($a)?$a:$b` 2. set not nullable value `{{set x!=$a}}`,indicates x must not be null when we try set $x , if $x === null , tage will auto raise an Exception: ``` if($x === null){ throw new NotNullableException(); } ``` 1. capture set like twig,we can define that powerful set syntax,just like old block works ``` {{set capture}} <div></div> {{endset}} {{$capture}} ```
$a ?? $bis equals to
!empty($a)?$a:$b{{set x!=$a}},indicates x must not be nullwhen we try set $x , if $x === null , tage will auto raise an Exception:
like twig,we can define that powerful set syntax,just like old block works