[−][src]Macro macro_utils::tern_haskell
You miss Haskell-like ternary conditions? Why not having them in Rust then?
let y = 4; let x = tern_haskell! { if (y & 1 == 0) then { "it's even" } else { "it's odd" } }; println!("{} is {}", y, x);