Does D have too many features?

SomeDude lovelydear at mailmetrash.com
Sun Apr 29 00:39:15 PDT 2012


On Sunday, 29 April 2012 at 06:10:40 UTC, Nick Sabalausky wrote:
> "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.

I don't mind changing the semantics of "version", but replacing 
the KEYWORD "version" with "static if" will make for code that is 
harder to read for the eye, harder to parse for the tools, and 
overall uglier. So I want to keep the keyword, which is a very 
good addition in my opinion.




More information about the Digitalmars-d mailing list