I don’t see how this is any different. The input comes in a different section of context and potentially before rather than after generation, but that doesn’t change that human taste is needed.
let foo = {
if bar {
1
} else if baz {
2
} else {
3
}
};
Unfortunately not all languages are Rust. foo = bar ? 1
: baz ? 2
: 3;