Closed as not planned
Description
Since you can namespace macros in rust 2018, maybe consider including min and max macros in std::cmp
?
From a post about gamedev on rust
There’s no min! and max! macro. You need to write max(max(max(max(max(max, a), b), c), d), e) for example. I have a code with 15 max like this.
This seems like a macro you can write yourself easily enough. Is there something I’m missing?
macro_rules! max { ($e: expr) => { $e }; ($e: expr, $($rest: tt)*) => { max($e, max!($($rest)*)) } }