←back to thread

177 points signa11 | 3 comments | | HN request time: 0.571s | source
Show context
dinobones ◴[] No.42161053[source]
I've written a ton of software, both backend and embedded-like software in C++.

What are people writing that requires such fancy/extensive usage of the borrow checker?

I can't even remember the last time I had to use a shared_ptr... unique_ptr and other general RAII practices have been more than enough for our codebase.

replies(2): >>42161108 #>>42164582 #
loeg ◴[] No.42161108[source]
I think OP is likely overusing references. The vast majority of code doesn't need to deal with explicit lifetimes.
replies(1): >>42161184 #
1. andybak ◴[] No.42161184[source]
OP sounds fairly smart and my first thought is "if OP is struggling then Rust probably isn't for me".

Who is Rust for?

replies(2): >>42161303 #>>42162100 #
2. kstrauser ◴[] No.42161303[source]
In some ways, people who aren’t heavily invested in other languages to the point that they think in them. Neophytes know less, but they also have fewer things to unlearn.
3. loeg ◴[] No.42162100[source]
I don't think it's useful to think there is some single spectrum of intelligence that makes one more or less suited to using Rust.

Rust is for anyone who finds it useful.