A few questions

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 27 16:08:19 PDT 2012


On Saturday, July 28, 2012 01:00:22 Namespace wrote:
> Me again.
> What's the matter if i write something for that shorthand and dmd
> has only to switch to it before the compiling begins?

Doing stuff like that makes your code completely unportable. It's _bad_ 
practice. Don't go and try to redesign the language if you want to be playing 
nice with other people. If you can do something completely within the 
language, then that's different (other people may still hate what you're up to, 
but at least they can compile it), but don't use a preprocessor unless you 
really don't care about anyone else ever using your code but you, and even 
then, I'd argue against it, because if you get into the habit of doing that, 
you're screwed when you actually have to interact with other D programmers.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list