Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 13 13:04:09 PDT 2014


On Sunday, 12 October 2014 at 23:25:57 UTC, Martin Nowak wrote:
>>> Automatic code rewriting is what might make syntax 
>>> deprecations
>>> more feasible in 6 month.
>>
>> Perhaps, but this change is so straightforward that I would 
>> expect that even a
>> very large codebase could be updated in a very short space of 
>> time.
>
> The main counterargument against this change is that it's yet 
> another change that require people to rewrite their code.
> Also the pull simply deprecates certain code, but for good 
> acceptance we also need to educate D users why we're doing this 
> change and must make updating code as painless as possible. A 
> tool like dfix will become more important with every line of D 
> code that is written. Too often we're only looking at phobos.
>

I'm sorry, but that won't cut it. People have been asking for
this change since like forever. This whole problem could be gone
by now, and at the time there was no release that won't make you
rewrite your code anyway.

No it is like, "we didn't made the change at the time for bad
reason, and now we don't want to make the change because we made
a bad decision at the time and change is more costly now".


More information about the Digitalmars-d mailing list