Re:C++ vs. Rust Build Times
by scaredginger on Friday January 06, 2023 @05:21AM
(#34273069)
What you've said here is mostly correct. The key part you've omitted is that monomorphization is opt-in. One could write Rust like C if they wanted to; they would have to be insane, but they could
[ Parent
| on HN ]
“opt-in” in the sense that I could just multiple versions of my functions if I want to? Agreed!
Re:C++ vs. Rust Build Times
by scaredginger on Friday January 06, 2023 @11:11PM
(#34285112)
Yeah, or accept a small runtime cost in exchange for a smaller binary