Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Consider how Rust monomorphizes generic functions, making a copy for each possibility. I imagine a compiler could generate a different continuation for each possible return type, along with a runtime check that branches to the appropriate continuation.

It seems like that might cause code bloat, though?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: