remove keywords
Lutger
lutger.blijdestijn at gmail.com
Fri Dec 7 03:34:01 PST 2007
mandel wrote:
> A proposal in a nutshell:
>
> - removal of the keywords "unittest, "version" and similar.
>
> - replaced by global compile time variables.
>
> - "dmd -<name>=<value>" to set them. Variables not found result in
> compiler warnings
>
> - "dmd -list version*" or similar to list all global variable names with
> prefix "version"
>
> -> less keywords, more powerfull control (use in boolean expressions),
> more native syntax, easier to understand
>
> Ideas? Problems? Objections?
There are two things I like in the current system that will be lost with
this proposal:
1. Distinction between conditional compilation as in different versions
of the software and use of static if for meta- and generic programming
2. A standardized naming scheme. For example, there's nothing magical
about the debug keyword as far as I know, it could just be replaced with
version(Debug). But it's nice that everybody uses the same thing for the
same purpose.
More information about the Digitalmars-d
mailing list