Hacker News new | past | comments | ask | show | jobs | submit login

With two important differences:

(0) RefCell can't be used in a multithreaded context. You have to use an actual Mutex.

(1) ConcurrentModificationException isn't reliable. It's thrown on a best-effort basis.

In any case, in a high-level language, just memory-safety is a very cheap guarantee. You also want to protect the internal invariants of your data structures - especially the concurrent ones!




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

Search: