Performance of exception handling

Alexander aldem+dmars at nk7.net
Tue May 10 12:07:53 PDT 2011


On 10.05.2011 16:53, Robert Jacques wrote:

> Well, you are supposed to use validate first on any untrusted input. Now the fact that validate returns void and throws an exception and there is no corresponding 'isValid' routine probably is bad design.

Not to mention that validating first and then running again through the same procedure, thus double-checking input, is a waste of time... ;)

/Alexander


More information about the Digitalmars-d mailing list