David Bruant (2013-09-25T10:01:32.000Z)
domenic at domenicdenicola.com (2013-10-01T21:01:02.657Z)
Le 25/09/2013 11:18, Tom Van Cutsem a écrit : > Off the top of my head I don't recall why this was a no-go. IIRC, the problem was that this solution wasn't generic enough because it couldn't work with userland private state. Auto-unwrapping with Date and Set works because interaction is always through methods. It is less clear how it should work for userland private state. Builtins are easy, because it's very clear which method is expected to work with which object; there is a clear definition of what an "instance" is and that can be tracked internally. Also, the auto-unwrapping can be done safely, because it's done internally. None of these two are true for userland private state. I think it's important to have a generic solution to avoid having magic (non-self-hostable) built-ins (but I don't have this solution).