|
|
|
|
|
by QuantumLogic
3503 days ago
|
|
I don't get why they'll let the language be abstracted in that way, but are against having ternary operators. It's the one thing that's somewhat bugged me about Rust. Aside from this one minor thing, I"ve been really loving the language itself. let greater = a < b ? b : a;
Is a lot better than having to write this all the time: let greater = if a < b { return a; } else { return b; };
|
|