Ternary expression?
Ternary expression?
Posted Oct 1, 2024 8:38 UTC (Tue) by danielthompson (subscriber, #97243)In reply to: Ternary expression? by Paf
Parent article: Coccinelle for Rust
In C the ternary operator is an expression but control flow (such as if) are not expressions. In Rust control flow is "just an expression".
I suspect part of the concern is also that, by allowing coccinelle to recognise the if in the println!() macro, will also result in it having to test many, many other control flow expressions for matches which would have been ignored when they appear in C.