jerome.martin.dev
2019-7-11 08:10:55

Maybe we could improve the behavior of #:fallbacks? I don’t see the point in having to import the currently defined generics to be able to use them. Any idea if this is a feature or just left as-is?


samdphillips
2019-7-11 16:39:00

I’m not sure what the technical solutions would be, but at present better docs would be good


samdphillips
2019-7-11 16:40:46

There is not a section in the Guide for generics that I see.


philip.mcgrath
2019-7-11 23:07:10

I believe the idea is that in #:fallbacks, or any other method definitions block, the names of the generic methods are bound to the concrete implementations of the methods for that same block. That lets you use the concrete implementation directly and avoid double-paying for dispatch. But yes, I know this has confused people, and I’m sure there’s room for improvement in the docs.