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

These magical transient errors are exactly why one should choose language with immutable values. You have old value and you compute new one (with sharing if possible). You can continue to use old value or throw it away.

The mutation operation can be seen as resource management optimization, premature (and thusly evil) more often than not.



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

Search: