At 09:36 AM 2/22/2001 +0000, David Grove wrote: >This is what's scaring me about all this talk about >exceptions... it can break this mold and make Perl into a "complainer >language" belching up uncaught (don't care) exceptions forcing try/except >blocks around every piece of IO or DB handling. The style > >try { > open(FOO, "./foo"); >} >catch FileOpenException $e { > die "Drat:" .$e->Message. "\n"; >} > >is horrifying to me over the normal > >open(FOO, "./foo") or die "Drat:$!\n"; Now steady on. No-one is proposing getting rid of the normal way of doing it. We're just talking about beefing up another WTDI. There are situations in programs that have dozens or hundreds of lines of code which benefit from the exception model just as much as your example.
- Re: Warnings, strict, and CPAN (Re: Closures an... Sam Tregar
- Re: Warnings, strict, and CPAN (Re: Closures an... schwern
- Re: Warnings, strict, and CPAN (Re: Closures an... Sam Tregar
- Re: Warnings, strict, and CPAN (Re: Closures an... schwern
- Re: Warnings, strict, and CPAN (Re: Closures an... Peter Scott
- Re: Warnings, strict, and CPAN (Re: Closures an... schwern
- RE: Warnings, strict, and CPAN (Re: Closures an... Paul Marquess
- Re: Warnings, strict, and CPAN (Re: Closures an... John Porter
- Re: Warnings, strict, and CPAN (Re: Closures an... Bart Lateur
- Re: Warnings, strict, and CPAN (Re: Closures an... David Grove
- Re: Warnings, strict, and CPAN (Re: Closures an... Peter Scott
- Re: Warnings, strict, and CPAN (Re: Closures an... Dan Sugalski
- Turn 'em on! (was Re: Warnings, strict, and CP... schwern
- Re: Turn 'em on! (was Re: Warnings, strict, an... Nathan Wiger
- Re: Turn 'em on! (was Re: Warnings, strict, an... Dave Storrs
- Re: Turn 'em on! (was Re: Warnings, strict, an... schwern
- Re: Turn 'em on! (was Re: Warnings, strict, an... Nathan Wiger
- Re: Turn 'em on! (was Re: Warnings, strict, an... Piers Cawley
- Re: Turn 'em on! (was Re: Warnings, strict, an... Michael G Schwern
- Re: Turn 'em on! (was Re: Warnings, strict, an... Peter Scott
- Re: Closures and default lexical-scope for subs abigail