toHash => pure, nothrow, const, @safe

Walter Bright newshound2 at digitalmars.com
Mon Mar 12 12:10:37 PDT 2012


On 3/12/2012 11:04 AM, H. S. Teoh wrote:
> Tangential note: writing unit tests may be tedious, but D's inline
> unittest syntax has alleviated a large part of that tedium. So much so
> that I find myself writing as much code in unittests as real code.
> Which is a good thing, because in the past I'd always been too lazy to
> write any unittests at all.


That's exactly how it was intended! It seems like such a small feature, really 
just a syntactic convenience, but what a difference it makes.


More information about the Digitalmars-d mailing list