Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
When should I use String vs. andstr in Rust? (steveklabnik.com)
7 points by tempodox on Oct 17, 2024 | hide | past | favorite | 1 comment


meh. just use str and &str for borrowing (params, return). String is so useless i just instantiate as needed and keep in a single scope and back to str before leaving.




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

Search: