logoalt Hacker News

nnevatieyesterday at 2:29 PM2 repliesview on HN

> what this adds

I guess the point is what is subtracts, instead - answer being the borrow-checker.


Replies

petcatyesterday at 2:48 PM

> answer being the borrow-checker

There is an entire world in Rust where you never have to touch the borrow-checker or lifetimes at all. You can just clone or move everything, or put everything in an Arc (which is what most other languages are doing anyway). It's very easy to not fight the compiler if you don't want to.

Maybe the real fix for Rust (for people that don't want to care), is just a compiler mode where everything is Arc-by-default?

Ygg2yesterday at 2:37 PM

So it re-adds manual lifetime checking. Got it.

show 1 reply