r/rust • u/small_kimono • Aug 29 '24
One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"
https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
586
Upvotes
r/rust • u/small_kimono • Aug 29 '24
10
u/Zde-G Aug 29 '24
That's called traits in Rust and doesn't require any tricks. You are probably omitting some important detail in your description.
Templates are replaced with macros in Rust and sometimes using traits there could help, too. And yes, they are much more awkward to use, but as I have said: if we are talking about small part of the codebase then you can tolerate it.
Large, entirely TMP-based libraries like Eigen couldn't be ported to Rust and need full rewrite, but if your TMP-based code is only part of the larger thing (as is usually the case) then solution could be found, if you'll think deeper about it.