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

Rust also suffers from libraries returning a newly allocated strings and vectors when the code should allow to pass a pre-existing string or vector to place the results.

Granted the latter leads to more verbose code and chaining of several calls is no longer possible.

But I am puzzled that even performance-oriented libraries both in Go and Rust still prefer to allocate the results themselves.





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

Search: