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

(And really my point is that I perceive there is an ambient pressure toward copying function parameters in general in order to minimize refactoring ... which is what I mean by there being an overall performance impact).


Thanks for elaborating, this was really helpful.

I don't know if I agree, per se, but I will say that Rust is still in such early stages that we'll be seeing how it shakes out as more people work with Rust. I haven't found this personally to be an issue, but I've also been doing Rust so long that it's hard to see things from a fresh perspective, you know?


I don't think there is. It's quite common to use references as usual, and unnecessary param copying happens pretty rarely in most Rust code.


I think there is, honestly—the JSON API is a legitimate example of that—but I think it's no worse in Rust than in C, where equivalent pressure already exists.




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

Search: