remove keywords
Denton Cockburn
diboss at hotmail.com
Fri Dec 7 01:16:02 PST 2007
On Fri, 07 Dec 2007 08:55:45 +0000, 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?
>
> btw.:
> bool enableXYZ;
>
> if(enableXFZ) import foo.Bar;
>
> ..might be hairy to implement?
seems like a rather big change.
Do you really have a big problem with the current method? or you just
think this is better?
I'd rather forgo a big change if the current method isn't painful (it's
not).
More information about the Digitalmars-d
mailing list