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.
Untyped templates in what sense? Pre-C++-20 expresses type constraints in various forms: type traits, compile time assertions, expression testing, etc. Moreso, C++ 20 has concepts, which I believe is really really powerful.
-
-
Think about how you might compile C++ templates without expanding them first. (You can’t)
-
How is that a problem? And how does Rust do better?
- Još 23 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
& Rust
].
Opinions are mine.
He/Him