-
-
Notifications
You must be signed in to change notification settings - Fork 672
Revert "Move DiagnosticReporter to errors.d"
#9507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#9507" |
|
Please close, it's fine as is. |
|
@jacob-carlborg as a matter of course, if the project lead disagrees with a large refactoring, we need to go with that. Sorry. |
thewilsonator
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not how due process goes.
|
Walter: have you ever tried using DMD as a library? We need to be able to collect diagnostics in DMD as a library, just printing them out to stdout doesn't cut it (think e.g. language server), so until there's a clear argument on how one can do this once you'll have undo this work, I strongly urge you to reconsider. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Not without a discussion.
Sure, but why would anyone still bother contributing? |
|
You should give a good amount of thought to someone saying that who is giving a dconf presentation on "How to Become a D Contributor"... |
|
I'm confused. Jacob is doing valuable work to help the sorry state of D static analysis tools, so why is there so much resistance instead of support? It even seems to comply with Walter's values:
Yes, there is some temporary boilerplate because it's a gradual refactor. And even once it's finished, the line count may be increased. That also happens when changing gotos into nested functions, it doesn't imply worse code. Is there another diagnostic reporter design we can all agree with, or it the current error handling design considered ideal and not to be tampered with? |
Further rationale given here: #9350 |
Replacing a call to an impure function with a call to an impure interface doesn't make the caller pure.
Replacing a call to a function with one to an interface is not pushing the call up the stack. |
|
@wilzbach > there's a clear argument on how one can do this once you'll have undo this work |
The |
Yes, and that is good. |
@WalterBright But you don't like it anyway? Because you close the PR #9494 that is the first of several in the process of making this possible. |
That's right. It's much too heavy, as "first of several in the process of making this possible" indicates. |
|
This branch is 5 months old, and almost 1500 commits behind master. If there's still outstanding issues, please submit a new PR for it. |
Reverts #9484
Once this is reverted, #9350 is next.