Eliminate assert and lazy from D?
Robert Jacques
sandford at jhu.edu
Mon Oct 12 22:37:46 PDT 2009
On Tue, 13 Oct 2009 01:17:19 -0400, Adam D. Ruppe
<destructionator at gmail.com> wrote:
[snip]
>> I personally believe it's useful to be able to pass an unevaluated
>> expression into a function, for example assert and enforce themselves
>> use that.
>
> I pretty rarely use it, but I'd be sad to see it go - it really does make
> a few things more elegant.
>
I use lazy for C function wrapping (i.e. converting C error codes to
exceptions and/or taking a corrective action based on the error code and
re-running the C function).
More information about the Digitalmars-d
mailing list