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

If we include as a axiom for the purposes of this conversation that we must be able to refactor out any part of the "constructor" and that the refactored function must have the same mutation "privileges" as the original creator, which I think is fairly reasonable, this leads you in the direction of something like Rust I think, which can construct objects and lend bits and pieces of it out in a controlled manner to auxiliary functions, but the value being returned can still have constraints on it.


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

Search: