opDispatch and alias this

Jonathan M Davis newsgroup.d at jmdavisprog.com
Tue Jun 26 04:17:16 UTC 2018


On Tuesday, June 26, 2018 03:17:37 aliak via Digitalmars-d wrote:
> On Tuesday, 26 June 2018 at 03:07:08 UTC, aliak wrote:
> > Also, what would the work around be for code that relies on
> > opDispatch and alias this? And shouldn't the PR take in to
> > account the "Deprecation process" and deprecate it first before
> > banning it?
> >
> > Cheers,
> > - Ali
>
> s/shouldn't/will
>
> Rephrased: will the usage of opDispatch with alias this be
> deprecated first :)

Any such change would have to be done via deprecation, because it's a
breaking change. Sometimes, breaking changes occur immediately due to bug
fixes (though it's sometimes been argued that even breakage such as that
should be minimized), but they should not occur due to a feature change
unless the nature of the feature change absolutely could not be done via a
deprecation, and it was deemed so critical that that breakage was worth it.
There's no way that this falls in that camp.

So, if the change ends up being made, and it immediately breaks your code
without there being any deprecation warning first, then someone wasn't doing
their job properly, and you should report it as a regression.

- Jonathan M Davis



More information about the Digitalmars-d mailing list