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

Rust is most comparable to C++ with heavy TMP, as it itself also makes use of templates.


To be precise, Rust generics perform monomorphization, which C++ templates also perform. But I wouldn't go so far as to compare the language to "C++ with heavy TMP", as that's far too broad of a characterization; TMP implies a lot of things, e.g. poor error messages, that Rust doesn't necessarily exhibit.


> TMP implies a lot of things, e.g. poor error messages, that Rust doesn't necessarily exhibit.

That's fair. My comment was mostly about performance.




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

Search: