Closed rohitvarkey closed 8 years ago
Improvements for this kind of thing definitely welcome. Perhaps as a first pass we could just always strip out the type parameters and, effectively, remove support for parametric types within Media.jl – I'm not sure how necessary they'd really be anyway. OTOH, making this work properly seems like it would require essentially reimplementing Julia's dispatch logic – unless we can reuse it somehow.
So I've changed this to strip parameters from types before finding a display. That pretty much suits my usecase, but I'm open to improvements.
I'm not sure if this is a bug or a feature. Thought I'd report it anyway.
For usual types the steps given in the documentation work fine. But when I was trying to do the same with parametric types I observed that the types needed to be specified for it to work. For example,
Please note that I was checking with
v0.1.1
and not master. Whenever I switched to master, Media was not working properly. Will file a separate issue for that.