post qualifier and template constraint limitation, is there a reason ?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 17 16:19:32 PST 2015


On 1/17/2015 4:06 PM, deadalnix wrote:
> Because I can never remember which one it is and run into the wrong case 50% of
> the time. I'd assume that I'm not the only one, but, as I have done for ages, do
> not consider this as an issue big enough to complain. This is the kind of thing
> that drain you productivity minute by minute.
>
> Kind of like
>
> class C(T) : B if(...) {} vs class C(T) if(...) : B {}
>
> That Brian mentioned in his DConf talk. It is just another instance of the same
> problem. Only one used to be accepted, but now both are valid. It looks like to
> me like another instance of the same problem.

On the other hand, I think having only one way to do it is better for 
consistency and stylistic reasons.

For example, I never liked that:

     int short unsigned

is valid in C. I don't believe it adds value.


More information about the Digitalmars-d mailing list