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

Even a thread-aware collection where collection methods are synchronized on an internal lock (as in Java 1.0 — this was quickly dropped as it's effectively useless) wouldn't help here: having `[]` and `[]=` safe will not make calling `[]`, performing an addition and then calling `[]=` safe.


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

Search: