How do these Union{Missing, T}s differ in practice?

const MaybeReal = Union{Missing, Real}
const RealMaybe = Union{Missing, T} where T<:Real

The difference is that you can write RealMaybe{Int}.

1 Like

and it knows how to specialize itself … thanks