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

Improve comments of uniqueness analysis #3197

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

riaqn
Copy link
Contributor

@riaqn riaqn commented Oct 29, 2024

Improves the comments on uniqueness analysis.

Review: @anfelor

typing/typedtree.mli Outdated Show resolved Hide resolved
typing/uniqueness_analysis.ml Outdated Show resolved Hide resolved
typing/uniqueness_analysis.ml Outdated Show resolved Hide resolved
typing/uniqueness_analysis.ml Outdated Show resolved Hide resolved
typing/uniqueness_analysis.ml Outdated Show resolved Hide resolved
typing/uniqueness_analysis.ml Show resolved Hide resolved
@riaqn riaqn mentioned this pull request Oct 30, 2024
@riaqn riaqn force-pushed the better-unique-comments branch from 261e22e to d081a14 Compare December 6, 2024 12:02
@riaqn
Copy link
Contributor Author

riaqn commented Dec 6, 2024

We had an offline discussion. I've revised according to the discussion. @anfelor Can you take another look?

BTW we agreed that the usage ordering should be from the view of the UA (i.e., you can relax [Aliased] to [Unique]), but I just realized that most comments are more sensible if talking from the type checker's view, and it would just be confusing to introduce UA's ordering and explain why they are opposite. So in the end, I only use the type checker's ordering (you can relax [Unique] to [Aliased]) without any of the UA's ordering.

@riaqn riaqn force-pushed the better-unique-comments branch from d081a14 to ae20d0f Compare December 6, 2024 12:10
@riaqn riaqn force-pushed the better-unique-comments branch from ae20d0f to 5fb9a4a Compare December 9, 2024 14:13
@riaqn riaqn enabled auto-merge (squash) December 9, 2024 14:14
@riaqn riaqn merged commit b802e15 into main Dec 9, 2024
20 checks passed
@riaqn riaqn deleted the better-unique-comments branch December 9, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants