Termination vs. Resumption semantics for exceptions (was: Re: Exceptional Situations in Javascript)
On 2007-03-29, at 20:59 EDT, Brendan Eich wrote:
In JS debuggers I know, being able to catch exceptions in their throw contexts is very important.
That's exactly the use case I have in mind, so, maybe there could
just be some introspection facility that supported that particular
use case?
On 3/31/07, P T Withington <ptw at pobox.com> wrote:
On 2007-03-29, at 20:59 EDT, Brendan Eich wrote:
In JS debuggers I know, being able to catch exceptions in their throw contexts is very important.
That's exactly the use case I have in mind, so, maybe there could just be some introspection facility that supported that particular use case?
Most (all?) of the major implementors are currently providing (or are in the process of providing) debugging tools for their user base. It's true that the functionality and quality of these tools are variable, and that good third-party tools might provide welcome uniformity and quality to the field, if we could define a debugging API that is sufficiently rich for advanced debugging. Having done that (while I was working at Opera), however, it seems to me that it's a big job (especially this late in the game), and that the best we can do is put it on the wishlist for Edition 5.
On Mar 27, 2007, at 8:39 AM, Brendan Eich wrote:
Here's the reference I was paraphrasing above (thanks to Andrew Myers
for finding it):
www.daimi.au.dk/~beta/News/volume1996/news/10680.txt
Quoting at length:
In JS debuggers I know, being able to catch exceptions in their throw
contexts is very important. But the use-cases in production code just
do not justify resumption semantics, IMHO. It entails dynamic scope
-- just say no (I've repented! ;-).