Does D have too many features?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sat Apr 28 23:10:59 PDT 2012


"SomeDude" <lovelydear at mailmetrash.com> wrote in message 
news:sxzgfzztxfvsstwrqdiu at forum.dlang.org...
> On Saturday, 28 April 2012 at 20:02:12 UTC, q66 wrote:
>> On Saturday, 28 April 2012 at 19:57:08 UTC, SomeDude wrote:
>>> On Saturday, 28 April 2012 at 19:23:00 UTC, q66 wrote:
>>
>> So you don't agree version() is horribly half assed without AND/OR (how 
>> do you generate the same code for two different versions without copying 
>> or creating a new version covering both cases then?) and that "version = 
>> FOO;" makes no sense?
>
> Sorry, with that, I agree. Nick Sabalausky proposed to remove version 
> entirely.
> But I agree there could be something like:
> version(LINUX|OSX){
> ...
> } else {
> ...
> }

FWIW, one of the big wins I see in migrating "version" to "static if" is 
switching from the clumbsy "defined/undefined" model to a model of 
"true/false, undefined is an error". The current "undefined is not an error" 
stuff is just so...ActionScript 2.




More information about the Digitalmars-d mailing list