Skip to content
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

populate table with undeclared identifiers #111

Closed
andrewrk opened this Issue Feb 7, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@andrewrk
Copy link
Member

commented Feb 7, 2016

One of zig's goals is to solve the "only the first compile error is useful" problem. So when "undeclared identifier" error happens, put the identifier in a table with the type set to the poison value. So there should only be 1 "undeclared identifier" error for each undeclared identifier.

@andrewrk andrewrk added the enhancement label Feb 7, 2016

@PavelVozenilek

This comment has been minimized.

Copy link

commented Feb 9, 2016

Is this really worth the effort? I never watch past the first error in C++ implementations which have decades of code inside. Large number of errors actually annoys me, I need to scroll to find the first one and mentally separate it from the rest.

Exception to this is the same error over and over, like renamed item not resolved in many places.

@andrewrk

This comment has been minimized.

Copy link
Member Author

commented Feb 9, 2016

Large number of errors actually annoys me, I need to scroll to find the first one and mentally separate it from the rest.

This is exactly the thing this would solve. So you would only get 1 instance of "use of undeclared identifier 'foo'". Then foo would be an identifier with the poison value, so anything that referenced it also got the poison value.

The poison value silences error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.