Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
scaredginger
· 3y ago · 0 comments
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
Comments
[–]
vegerot
3y ago
“opt-in” in the sense that I could just multiple versions of my functions if I want to? Agreed!
[–]
scaredginger
OP
3y ago
Yeah, or accept a small runtime cost in exchange for a smaller binary