You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throws type NamedTuple has no field a on the last line with @map. This is due to c having type Float in one row, and Int in another. When all values have the same type, the same code works:
Yeah, the current design very much only works for "type stable iterators", i.e. iterators where each element has the same type. I'll have to think whether we can relax that.
For now a better error message would of course be helpful, but that might also not be easy...
Oh, didn't know that, and didn't see anywhere in the docs. Well, this is a pretty strong limitation to keep in mind... Especially as (to my understanding) it relies not only on all elements belonging to the same concrete type, but also the container having concrete eltype or analog - which is not the same. I think it depends on compiler type inference at least in some cases.
Activity
davidanthoff commentedon Aug 25, 2019
Yeah, the current design very much only works for "type stable iterators", i.e. iterators where each element has the same type. I'll have to think whether we can relax that.
For now a better error message would of course be helpful, but that might also not be easy...
aplavin commentedon Aug 25, 2019
Oh, didn't know that, and didn't see anywhere in the docs. Well, this is a pretty strong limitation to keep in mind... Especially as (to my understanding) it relies not only on all elements belonging to the same concrete type, but also the container having concrete
eltypeor analog - which is not the same. I think it depends on compiler type inference at least in some cases.