perhaps the 'junior programmer/debugging edition' should be liberally sprinkled with cool try catches that even throw back the error!
On 11/16/06, John Resig <[EMAIL PROTECTED]> wrote: > > That said, I think it should be as fail-safe as possible. > > But which is worse - throwing an exception inside of jQuery due to > malformed JSON data - or silently dying? > > I mean, as it stands right now, jQuery assumes that all data coming > into it (selectors, arguments, etc.) are well-formed. Beyond that, > it's quite a gray area. > > I'm personally against having empty try/catch blocks to hide errors - > they almost always cause more confusion than what they're worth. > > --John > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
