Skip to content

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

Merged
KristofferC merged 2 commits intoJuliaLang:masterfrom
topolarity:ct/toml-type-stability
Apr 5, 2024
Merged

TOML: Improve type-stability of BigInt/UInt support#53955
KristofferC merged 2 commits intoJuliaLang:masterfrom
topolarity:ct/toml-type-stability

Conversation

@topolarity
Copy link
Copy Markdown
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
@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