Scott Meyers' DConf 2014 keynote "The Last Thing D Needs"

Dmitry Olshansky via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu May 29 11:11:27 PDT 2014


29-May-2014 04:58, Walter Bright пишет:
> On 5/28/2014 5:35 PM, Brian Rogoff wrote:
>> Could you elaborate? Using some of the examples Brian gave, which ones
>> do you
>> think are are mathematically consistent/human inconsistent and which
>> the inverse?
>
> Off the top of my head:
>
>      static if (condition)
>      else :
>
>      ... declarations ...
>
> All attributes apply to either:
>
> 1. the next statement or declaration
> 2. { ... }
> 3. : ...
>
> That case is (3), as static if is set up as an attribute.
>

Static if is certainly NOT an attribute, it doesn't make any sense.
And no, it doesn't matter how the current frontend implements it, 
because you can argue next to any decisions this way.

-- 
Dmitry Olshansky


More information about the Digitalmars-d-announce mailing list