@phranck @swiftui Agree; was the reason I added if/then/else to Kitten templates (https://codeberg.org/kitten/app#conditionals).
But the big caveat with wrapper functions is they don’t short circuit. So not only the conditional but every branch gets evaluated. Which is not what happens with the built-in ternary operator and can lead to crashes if you expect branches to only evaluate when true and for values to exist when branches are evaluated. So you have to use optional chaining everywhere.
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.