Suggestion: Syntactic sugar for Exception handling in D2
Daniel Keep
daniel.keep.lists at gmail.com
Sun Jun 21 18:14:53 PDT 2009
Michiel Helvensteijn wrote:
> Daniel Keep wrote:
>
>> I like the idea from a DRY perspective.
>
> How so? I don't see anything 'repeated' in the before-case.
The 'try' keyword is redundant. The presence of any number of catches
or a finally indicates that the block must trap exceptions. If there
are no catches or a finally, then a try by itself would be pointless.
More information about the Digitalmars-d
mailing list