On Tuesday, 9 April 2013 at 08:01:58 UTC, Timothee Cour wrote:
Actually I prefer this way when coding in any language with
conditional compilation support, because I have seen one too
many #ifdef spaghetti in enterprise code.
The problem is mitigated in D because conditional compilation
follows
the language scoping. So the benefits of DRY code outweigh the
added
complexity, which is very minor with proper IDE support: visualD
supports graying out bad code blacks that are known statically
to be
false, and I've just made similar enhancement request for
monod, see
https://github.com/aBothe/Mono-D/issues/269
(working on that with Alexander Bothe)
Nice :)