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

Most non trivial programs I've seen in Rust just end up with Arc<> and copies all over the place, because getting lifetimes right becomes borderline insanity.


It totally depends on the program. Sometimes you need to use Arc, sometimes you don't. Arc doesn't involve any runtime asserts though and it's not a crime to use it.

For example I just ripgrep. Arc is used 29 times, compared to 185 uses of Vec.




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

Search: