From: Colin M. <co...@ch...> - 2008-11-25 16:20:27
|
Magentus wrote: > try script > as {vars} > handler ?-- errorcode-pattern? body > return ?-- returnvalue-patten? body > on {code ?-- returnvalue-pattern?} body > finally body > With all due respect, that's a hairy nightmare and I wouldn't use it on principle (the principle is that anything with *that* many arguments is too hard to keep in my head while coding.) Is there really no way you can simplify it to do one thing, that's hard to do without it, and do it well? Just, perhaps, [try {} finally {}] ... that's simple, even I can remember that one, and have a reasonable guess at what it might do, and anything more complex occurs (say) in the 'finally' block. (Oh, and before anyone asks, I don't think try/as/handler/return/on/finally would benefit from NULLs) Colin. |