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

Using Any as a lower bound #82

Open
julbinb opened this issue Jan 15, 2021 · 0 comments
Open

Using Any as a lower bound #82

julbinb opened this issue Jan 15, 2021 · 0 comments

Comments

@julbinb
Copy link

julbinb commented Jan 15, 2021

This isn't an issue per se, just curious (I am researching Julia subtyping, and we are looking into lower-bounds usages)...

function Base.convert(::Type{DataValueArray{T,N}}, A::AbstractArray{S,N}) where {S >: Any,T,N}

Is there a reason to use A::AbstractArray{S,N} with S >: Any instead of A::AbstractArray{Any,N}?
It seems that there shouldn't be any types distinct from Any that would be supertypes of Any.

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

No branches or pull requests

1 participant