Re: Try/Catch

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

Note that once you introduce something like exception handling in a language, its not a optional thing. Many situations will force, even the developers that dont like it, to use it.

For example: If the fopen() function throws a exception (instead of a error code) when a file dont exists, all developers are forced do write try/catch blocks to check if everything is OK.

I think that for this example, in a hypothetical situation where I was developing try/catch in euphoria, I'd make not handling something like that a warning, not an error. But I would also be very wary of throwing exceptions from built-ins.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu