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

todo order is wrong #3556

Closed
aryairani opened this issue Nov 3, 2022 · 3 comments
Closed

todo order is wrong #3556

aryairani opened this issue Nov 3, 2022 · 3 comments

Comments

@aryairani
Copy link
Contributor

Neither working through from the top down nor the bottom up in the todo list after a type refactor necessarily gives work in dependency order.

I'm omitting the specific example because it isn't public code, and we imagine it could be minimized further anyway.

The symptom was that working todo 1/112 required us to first complete todo 40/112. Working from the bottom up also didn't work, thus we think the order heuristic must be wrong or broken.

Copy link
Member

pchiusano commented Nov 3, 2022

For one, you want to update dependent types. Then any functions that do direct pattern matching or call the constructors directly. Then everything else in dependency order.

The todo output should also be an antichain. If entry A depends on entry B, then only B should be listed. Reasoning: there's no sense updating A until its dependencies have all been updated.

@ceedubs
Copy link
Contributor

ceedubs commented Nov 3, 2022

Related to #2248

@aryairani
Copy link
Contributor Author

superseded by #5088, though we may still revisit if we implement something like this again in a future update process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants