3 ms·
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 wou
by scaredginger 4y ago
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
- vegerot 4y ago“opt-in” in the sense that I could just multiple versions of my functions if I want to? Agreed!
- scaredginger 4y agoYeah, or accept a small runtime cost in exchange for a smaller binary