News for hackers. Stuff that matters.
Re:Rust in the Android Platform by lenkite on Wednesday April 07, 2021 @04:01AM (#26721686)
"Every feature you have in C++, Rust does it better"

How does one perform generic fold expressions in Rust lang ? (Possible in C++ 17 and above)

https://foonathan.net/2020/05/fold-tricks/ https://en.cppreference.com/w/cpp/language/fold

Re:Rust in the Android Platform by pixel_fcker on Wednesday April 07, 2021 @05:27AM (#26722284)
Macros baby
Re:Rust in the Android Platform by lenkite on Wednesday April 07, 2021 @06:45AM (#26722973)
AFAIK, macros are only applicable to a subset of problems. Anyways, I found that variadic generics is a draft RFC: https://github.com/rust-lang/rfcs/issues/376