Hacker News new | ask | show | jobs
by kaba0 1636 days ago
That’s what OOP should handle though. You shouldn’t let internal objects escape if it is not intended.

Don’t get me wrong, I really like RAII or Rust’s compiler enforced ownership model but it doesn’t solve everything. Eg. it only disallows data races not race conditions.

Also, immutability goes a long way toward solving all that.