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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

toml: panic if access fails to a key that was checked #12384

Merged
merged 3 commits into from Nov 5, 2021

Conversation

Larpon
Copy link
Contributor

@Larpon Larpon commented Nov 4, 2021

I think it's reasonable to panic instead of returning an error in these cases (since it should never happen 馃檪 )

vlib/toml/parser/parser.v Outdated Show resolved Hide resolved
@Larpon Larpon force-pushed the toml/checked-key-access-should-panic branch from ed879b1 to e65b551 Compare November 5, 2021 09:51
vlib/toml/parser/parser.v Outdated Show resolved Hide resolved
@spytheman spytheman merged commit 9b00564 into vlang:master Nov 5, 2021
@Larpon Larpon deleted the toml/checked-key-access-should-panic branch November 5, 2021 13:39
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

2 participants