David Bruant wrote:
Could what I just described implemented with "value proxies"? I'm not very familiar with the proposal.
See http://disnetdev.com/talks/virtual_values.pdf and http://users.soe.ucsc.edu/~cormac/papers/oopsla11.pdf -- and probably more from Cormac and Tim that I don't have at hand right now. Lots of applications, no hardcoding for just "error handling".
An idea I first heard from Dave Herman: make an undefined proxy that tracks its origin (source coordinates, stack backtrace) and return it instead of the one true undefined value, so you can find where that missing property was dereferenced.
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

