Random thought: It sure is nice that we went with typed generics in Rust instead of untyped templates like C++/D/Nim/etc, so that we can even *have* the monomorphization debate at all.
-
-
Yeah, I suppose. I'm not certain as to whether that's possible with C++20 concepts yet. Also, that's an unfair comparison. The type systems are different, they perform different operations at compile time. I'm new to Rust though. Rust's generics seems to be type based.
-
A static assert for example in C++ can make a type invalid as a template parameter. Which you can't test until you perform a full expansion.
- 14 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.