Re: Try/Catch

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

There are minus and plus for each technique; exception handler and returned error codes.

Try/Catch has also its minus, for being a complex method, not so "Euphorian" in my opinion.

Both minus and plus of each method should be considered by the developers...

I vote for Simplicity, since it's a core concept of Euphoria programming language.

Edit: I prefer the general approach of open(), which doesn't tell me anything about the real problem (file-not-found/drive-not-exists/etc), because all I care about is if the task is done or not. Simple approach.

My personal programming style never make use of error handling, unless it's really necessary in some very specific situation. Big programs that I wrote (for salary calculation, work management, etc) without using a single error handler, served for many years.

I think that exception handling should be used as less as possible, or not at all, in a well written program. (Personal approach).

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

Search



Quick Links

User menu

Not signed in.

Misc Menu