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

doc: Render the any type explicitly #765

Merged
merged 1 commit into from
Jul 22, 2024
Merged

doc: Render the any type explicitly #765

merged 1 commit into from
Jul 22, 2024

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Jul 22, 2024

Relates #757

This ensures that if any dynamic type is supported by a method, it will be indicated using the new any placeholder.

image

This solves an ambiguity in documentation so we can differentiate between methods which return () (empty tuple) and any value like clone above.

Eventually with gradual typing this is expected to become a proper any type that can be used which essentially disables type checking.

Once it is a proper type it should also be documented.

@udoprog udoprog added the enhancement New feature or request label Jul 22, 2024
@udoprog udoprog merged commit 0d5c2b0 into main Jul 22, 2024
21 checks passed
@udoprog udoprog deleted the doc-any-type branch July 22, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant