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

Add return type restrictions to file-related methods and Log #10584

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

oprypin
Copy link
Member

@oprypin oprypin commented Apr 3, 2021

No description provided.

@straight-shoota
Copy link
Member

Some type annotations are added to internal (private/nodoc) APIs. That's usually unnecessary because they're not part of the API docs and because they're only consumed internally, messed up types should be easy to spot.

I'm not completely opposed to that. They still serve as internal documentation. But I'm not sure if it's intentional?

@oprypin
Copy link
Member Author

oprypin commented Apr 5, 2021

It's intentional. People reading internal code can also read the type annotations. I don't see why not.

@straight-shoota straight-shoota added this to the 1.1.0 milestone Jun 1, 2021
@straight-shoota straight-shoota merged commit 6b9fa80 into crystal-lang:master Jun 7, 2021
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.

2 participants