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

Document the compat_seen function #528

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

xxdavid
Copy link
Collaborator

@xxdavid xxdavid commented Apr 11, 2023

I think I finally understand why we need to carry the Seen variable. 😄

Oftentimes, I find the documentation of Gradualizer's codebase unsatisfactory and not very welcoming for newcomers (much useful information is just scattered in GitHub issues and pull requests). Is it okay to document things as I gradually (haha) become familiar with Gradualizer? Also, I'm better at concrete than abstract thinking, and examples help me a lot to understand things. Is it alright to include them in the docs?

@zuiderkwast
Copy link
Collaborator

Is it okay to document things as I gradually (haha) become familiar with Gradualizer?

Yes, I think it is very much okay to document things. :-)

The 'Seen' trick is used in similar ways in various places, IIRC not only in compat.

@erszcz
Copy link
Collaborator

erszcz commented Apr 11, 2023

I also think it's good to document things 👍

On the other hand, I'm not sure we'll ever be able to document everything with this level of detail, since a typechecker is quite a dense piece of code with a lot of assumed background knowledge. The case of Seen is, for example, described in TaPL - see also the connected #451 (comment).

@erszcz erszcz merged commit 01a1931 into josefs:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants