equivariant functions

Benji Smith dlanguage at benjismith.net
Mon Oct 13 21:54:44 PDT 2008


Bill Baxter wrote:
> I've not seen a language where keywords are prefixed, but now that you
> mention it, it does kinda make sense.  You only expect to have a few
> dozen keywords, but the number of variables used in any given program
> will be much much greater.  So if you're going to push one or the
> other into a separate namespace, it seems more logical to do it to the
> keywords, not the identifiers.

The C preprocessor uses # as a prefix for all of its keywords.

My preference in D would have been for compile-time keywords to use that 
same convention, rather than all being prefixed with the word "static".

--benji



More information about the Digitalmars-d mailing list