Exception programming difficult

Walter Bright newshound2 at digitalmars.com
Sat Aug 11 21:27:43 PDT 2012


On 8/11/2012 8:02 PM, Marco Leise wrote:
> I know that the Java way isn't perfect, because some lazy people write dummy
> exception handlers to silence the errors, but its a worse solution to _not_
> notify the user of a function, that it potentially throws exceptions, I
> think. So I wish D was explicit about thrown Exceptions.



Read this and see if you change your mind:

http://www.mindview.net/Etc/Discussions/CheckedExceptions/

Anyhow, that article is why D does not have exception specifications. Also, 
please note that C++ dropped exception specifications.


More information about the Digitalmars-d mailing list