Are there any default dmd optimizations

Jacob Carlborg doob at me.com
Wed Feb 27 02:37:03 PST 2013


On 2013-02-26 21:51, foobar wrote:

> Again, this is a completely superfluous feature. D already has
> annotations (took only several years to convince Walter to add them)
> which are more flexible and much better suited for this.
>
> @unittest // <- this is a unit-test function
> void mySuperDuperTestFunction(...);
>
> There is no benefit in having all those special case features in the
> language which have all sorts of integration issues yet deny the
> usefulness of a more general solution generally accepted in the
> programming world, successfully used in many languages and thus also
> familiar to programmers coming from those languages.

I like that I don't have to create a function for the tests. I can run 
arbitrary code in the unit test blocks. Otherwise I agree with you.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list