Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
jimcbrown said...
mattlewis said...

But what's the difference between a recoverable and unrecoverable?

You can trap the former and continuie program execution without making the sytem unstable or introducing logic errors (at least in principle), but you can't do this for the latter.

Well, duh, but my point was that it's not always obvious when an error is one or the other.

Oops. That's a good point.... that's probably a significant factor in causing try/catch overuse/abuse.

mattlewis said...
jimcbrown said...

Or, depending on your use case and personal preference, just don't use try/catch at all. It's not like we're turning into Java, where try/catches are required for use in ordinary, everyday events...

Totally.

Matt

Point taken.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu