Subj : Re: try catch blocks To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Fri May 16 2003 08:39 pm Brendan Eich wrote: > Why is this an "awful hack"? It does not look like known from strong typed languages like C++ or Java. With JS 2.0 this strong looking on the data type comes to JavaScript, so with JS 2.0 such a hack is not needed, becaus the same syntax as known from the other mebers of the C language family mmight be used. try { } catch(elephants e) { } catch(bees e) { } catch(mice e) { } catch(...) { } > In JS1, it's necessary only if we are unpatient and don't want to wait for JS 2.0 > 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. -- 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 .