Subj : Re: try catch blocks To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Sat May 17 2003 09:30 pm Brendan Eich wrote: > People are writing real scripts in JS1 now, and they're using > try/catch/finally. The can use it only on server side or similiar well known environments, but not in the area of most JavaScript usages, the world wild web. There scripts using this, will fail on NN4, which is large minority. > 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. No, the must use it as designed for. A single try-catch with "game over" semantics and "this exception caused it". If they need multiple catches, then they should work on JS2.0 or get high blood pressure drinking java ;-) > 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? Such scripts result in non portable code and incompatible programming practice. > People aren't waiting. Scratching the quicky from the wall or out of the heads is much more work than implementing a real solution. The unpatient shoud help Roger to implement JS 2.0. This is more usefull than crying for those hacks. -- Georg Maaß - bioshop.de D-93466 Chamerau, Roßbergweg 42 JavaScript, C++ Engineering - The ultimative DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .