The Error type

Brendan Eich brendan at mozilla.org
Fri Aug 17 07:11:39 PDT 2012


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


More information about the es-discuss mailing list