4 ms·
I love that idea, but I still prefer it’d read the same as an if. Meaning the condition first and the false case last.
by jfkebwjsbx 6y ago
I love that idea, but I still prefer it’d read the same as an if. Meaning the condition first and the false case last.
- nicoburns 6y agoRust implements this: let foo = if is_employed() { 2000 } else { 0 }