Require ArrayInterfaceStaticArrays to fix downstream - #205
Conversation
|
@oschulz this is a bit of a tragedy. But there's a test that shows it's necessary, because of how this is implemented: @generated function ArrayInterfaceCore.ismutable(::Type{<:ArrayPartition{T,S}}) where {T,S}
res = all(ArrayInterfaceCore.ismutable, S.parameters)
return :( $res )
endwhich needs the dispatch for static arrays already defined for this to be resolved correctly, since it doesn't check the back edges. |
|
I guess that brings us back to the question "what would we need in a StaticArraysCore"? |
Sorry, I don't see it right now - which specialization is the critical one? |
|
Once again, this would only need |
|
|
IMO, first push to Base should probably be to get that concept in Base. I don't know how people could write code without, it's insane that it still doesn't exist. |
|
Can't we just ask StaticArrays.jl to depend on ArrayInterfaceCore.jl and define it? :-) |
|
ArrayInterfaceCore.jl is so light now, so it would seem natural to define ArrayInterfaceCore.ismutable(::Type{<:SArray}) = falsein StaticArrays.jl, right? |
No description provided.