Why version() ?

Joel C. Salomon joelcsalomon at gmail.com
Wed Feb 11 06:49:18 PST 2009


Jarrett Billingsley wrote:
> If nothing - NOTHING - else, please give us version(!something).  Out
> of everything wrong with it, that is the worst.  You say that
> according to "cognitive studies" that people don't see the !; then why
> didn't you remove it from the rest of the language?  And how is THIS:
> 
> version(Poopy) {} else
> {
> 
> }
> 
> supposedly better?!

version(!Windows)
    // some added functionality that depends on UNIX-like semantics

Then port the code to something oddball—Plan 9, say, or VMS.

—Joel Salomon



More information about the Digitalmars-d mailing list