Subj : Re: try catch blocks To : =?ISO-8859-1?Q?Georg_Maa=DF?= From : Brendan Eich Date : Fri May 16 2003 08:24 pm Georg Maaß wrote: > Brendan Eich wrote: > >> Why is this an "awful hack"? > > > It does not look like known from strong typed languages like C++ or Java. So what? >> In JS1, it's necessary > > > only if we are unpatient and don't want to wait for JS 2.0 People are writing real scripts in JS1 now, and they're using try/catch/finally. Without this extension, they're forced to test with random logic in the single-per-ECMA catch clause, and they must remember to re-throw by hand. That's a hazard, an "awful" hazard even, easily avoided by this extension. Your aesthetics won't rescue any real-world script that forgets to re-throw, so why should aesthetics overrule this extension? > >> Yes, of course -- JS2 is quite a different language. What made your >> comment relevant to JS1? > > > I think we can wait for JS 2.0 if we need it. People aren't waiting. /be > > > .