heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
72 stars 3 forks source link

Make `Utilities.union_ordering()` more dynamic for collections based on element type #86

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

For purposes of deserializing unions, AbstractDict always has a priority of 7, and AbstractVector always has a priority of 8.

However, they should have a priority proportional to their element type, so that e.x. a Vector{Enum} has higher priority than a Vector{Int}.