Covert a complex C header to D

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 3 16:10:49 PDT 2017


On Monday, 3 April 2017 at 11:18:21 UTC, Nicholas Wilson wrote:
>    prefer template over string mixins where possible. This will 
> make the code much more readable.

My advise would be the opposite.
templates put much more pressure on the compiler then 
string-mixins do.
Also the code that templates expand to is hard to get.
Whereas the code that string mixins expand to can always be 
printed one way or another.


More information about the Digitalmars-d-learn mailing list