- Issue created by @pdureau
- Status changed to Fixed
almost 2 years ago 3:34pm 17 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Short ternary operator syntax can be used by leaving out the middle part of the ternary operator for quick shorthand evaluation:
expression1 ?: expression2
We use it many time in DSFR:
This operator is competing with the default filter
expression1|default(expression2)
And it seems default filter is a better solution:
Replace shorthand ternary operators by default filter.
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.