On 29-04-2012 21:19, David Nadlinger wrote:
On Sunday, 29 April 2012 at 12:26:13 UTC, David Nadlinger wrote:
On Saturday, 28 April 2012 at 18:48:18 UTC, Walter Bright wrote:
What's your list?

My personal list of features I could easily live without – some of
these might be controversial, but yes, I have written non-trivial
amounts of code in both D1 and D2:

What I forgot to mention:
- VersionCondition: Just provide a mechanism to map command line flags
to constants, probably in a magic »version« namespace, and use static if
(e.g. »version (Foo)« -> »static if (version.Foo)«, »version (unittest)«
-> »static if (unittest)«).

Something like that seems reasonable. At any rate, version in its current state is not very useful in practice.


- DebugCondition: Hardly used in practice, at least not in ways that
couldn't easily be replaced with a static if (resp. version). It is a
frequent source of confusion for newcomers that -debug is orthogonal to
-O/-release, and I'm not too fond of the purity »escape hatch« built in
(why not just use casts in those rare cases?).

+1. And debug being a keyword is more annoying than you'd think.


David

--
- Alex

Reply via email to