proposal: short => rewrite for function declarations

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 10 13:50:30 UTC 2020


On Saturday, 10 October 2020 at 12:36:15 UTC, IGotD- wrote:
> On Saturday, 10 October 2020 at 12:30:24 UTC, Imperatorn wrote:
>>
>> What do you mean. It removes stuff. I'd say Adam's proposal is 
>> more readable.
>
> I don't experience it as more readable. However, the biggest 
> problem I have with it is that we just add more ways doing the 
> same thing. I want the D should be restrictive adding more ways 
> doing the same thing, otherwise we will get into a C++ 
> situation. Initialization in C++, has more different ways than 
> you can count on your fingers.

Sure, readability is subjective. It's shorter though. And I agree 
that we generally should be very restrictive with adding 
features. But I believe this would be achieved through a preview 
switch, so technically it doesn't change the default case.


More information about the Digitalmars-d mailing list