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

Your example usage only implies what I would consider the non-magic implementation behavior. I could fulfill that contract with `(initial) => { let s = initial; return [ s, v => s = v]; }`. No hidden magic there, and no chance of breaking referential identity.


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

Search: