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

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 10 11:17:06 PDT 2014


On Friday, October 10, 2014 15:13:15 Don via Digitalmars-d wrote:
> On Friday, 10 October 2014 at 02:38:42 UTC, Walter Bright wrote:
> > (I understand that there's a lot of advocacy lately about
> > "break my code", but I'm the one who bears the brunt of "you
> > guys broke my code again, even though the code was correct and
> > worked perfectly well! D sux.", besides, of course, those poor
> > souls who have to go fix their code base, and I hear again
> > about how D is unstable, another Reddit flame-fest about D
> > being unsuitable because the designers can't make up their
> > mind, etc.)
>
> None of those professional complainers matter though. They'll
> always find *something* to complain about.
>
> This is an excellent example of a breaking change that pays for
> itself within weeks. A large codebase can be converted over very
> quickly, without any thought required.
> It has the *immediate* benefit that the coding style improves. It
> has the longer term benefit of removing a lot of confusion.

Exactly!

> > This endless search for the ideal syntax is consuming our time
> > while we aren't working on issues that matter. (And this change
> > will consume users' time, too, not just ours.)
> >
> > If we're going to break things, it needs to be for something
> > that matters. This doesn't make the cut.
>
> No. It's a removal of one of those little friction points, that
> hurts everyone very slightly, all the time. One less thing to
> worry about, one less thing to explain, one less thing to be
> confused by.
> If you have an organisation with 50 people, every one of them
> benefits slightly. In aggregate, that's a big deal.

+1

- Jonathan M Davis



More information about the Digitalmars-d mailing list