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 JSON, YAML, XML #10581

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

oprypin
Copy link
Member

@oprypin oprypin commented Apr 3, 2021

No description provided.

src/json/pull_parser.cr Outdated Show resolved Hide resolved
@straight-shoota
Copy link
Member

straight-shoota commented Apr 5, 2021

Why did you remove the restrictions on read_{begin,end}_{array,object} entirely in the last commit?

@oprypin
Copy link
Member Author

oprypin commented Apr 5, 2021

@straight-shoota I have realized that those return value are not useful and accidental, they'd better be Nil, except I don't do backwards-incompatible changes here, so better just leave them as is.

@straight-shoota straight-shoota added this to the 1.1.0 milestone Jun 1, 2021
@straight-shoota straight-shoota merged commit 35c332d 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.

3 participants