It might be possible to support both syntaxes without a lot of code, but another option is to deprecate the syntax without grouping (in which case this would be a breaking change). The grouping requires additional allocations for the groups.
This change is motivated by tools such as prettier that cannot otherwise produce readable layout on L.iftes expressions.
Without grouping (up to v13.0.0):
With grouping:
It might be possible to support both syntaxes without a lot of code, but another option is to deprecate the syntax without grouping (in which case this would be a breaking change). The grouping requires additional allocations for the groups.
This change is motivated by tools such as prettier that cannot otherwise produce readable layout on
L.iftes
expressions.