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

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 11 06:40:11 PDT 2014


On Saturday, 11 October 2014 at 12:48:03 UTC, Martin Nowak wrote:
> https://github.com/D-Programming-Language/dmd/pull/4043#issuecomment-58748353
>
> There has been a broad support for this on the newsgroup 
> discussion because this regularly confuses beginners.
> There are also some arguments against it (particularly by 
> Walter) saying that this change will put too much work on D 
> code owners.
>
> Let's continue with the following steps.
> - add RHS/LHS function qualifiers to D's style guide
> - change all code formatting (like dmd's headergen and ddoc to 
> use RHS qualifiers)
> - help Brian to get dfix up and running 
> (https://github.com/Hackerpilot/dfix/issues/1)
>
> Then we might revisit the topic in 6 month and see whether we 
> have better arguments now.

Sounds good but what is the benefit over just having deprecation 
period 6 months longer?


More information about the Digitalmars-d mailing list