Skip to content

Commit

Permalink
TOML: Improve type-stability (#55016)
Browse files Browse the repository at this point in the history
Dependent on #55017. This changes
the output of the TOML parser to provide specialized `Vector{T}` less
aggressively.

Specifically, combinatorially expensive types like
`Vector{Vector{Float64}}` or `Vector{Union{Float64,Int64}}` are instead
returned as `Vector{Any}`, while vectors of homogeneous leaf types (e.g.
`Vector{Float64}`) are still supported as before.

This change makes the TOML parser fully type-stable.
  • Loading branch information
topolarity authored Sep 7, 2024
2 parents e95eedd + 829fb7c commit 61be4de
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 61be4de

Please sign in to comment.