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

TOML: Improve type-stability of BigInt/UInt support #53955

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

topolarity
Copy link
Member

@topolarity topolarity commented Apr 4, 2024

From a type-stability perspective, this restores a lot of our behavior before #47903.

As it turns out, 10 of the 11 uses of parse_int (now called parse_integer) introduced in that PR are unnecessary since the TOML format already requires the parsed value to be within a very limited range.

Note that this change does not actually revert any functionality (in contrast to #49576)

From a type-stability perspective, this restores a lot of our behavior
before JuliaLang#47903. As it turns out, 10 of the 11 uses of `parse_int` introduced
in that PR are unnecessary since the TOML format already requires the
parsed value to be within a very limited range.

Note that this change does not actually revert any functionality (in
contrast to JuliaLang#49576)
@topolarity topolarity requested a review from KristofferC April 4, 2024 16:07
@KristofferC KristofferC merged commit 59c3c71 into JuliaLang:master Apr 5, 2024
7 checks passed
@KristofferC KristofferC added the backport 1.11 Change should be backported to release-1.11 label Jun 13, 2024
KristofferC pushed a commit that referenced this pull request Jun 13, 2024
From a type-stability perspective, this restores a lot of our behavior
before #47903.

As it turns out, 10 of the 11 uses of `parse_int` (now called
`parse_integer`) introduced in that PR are unnecessary since the TOML
format already requires the parsed value to be within a very limited
range.

Note that this change does not actually revert any functionality (in
contrast to #49576)

(cherry picked from commit 59c3c71)
@KristofferC KristofferC removed the backport 1.11 Change should be backported to release-1.11 label Jun 25, 2024
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.

2 participants