ExplicitImports.jl icon indicating copy to clipboard operation
ExplicitImports.jl copied to clipboard

`ModuleDispatcher`: dispatch on symbols (module name) instead of dispatching on modules

Open DilumAluthge opened this issue 5 months ago • 2 comments

Support for older Julia versions was dropped recently in order to be able to dispatch on modules.

Instead of dispatching on modules, could we dispatch on symbols? This would allow us to restore support for older Julia versions/

DilumAluthge avatar Jul 21 '25 04:07 DilumAluthge

We would need to revert #122 and add back Compat as a dependency. What versions of Julia do you need?

ericphanson avatar Jul 21 '25 10:07 ericphanson

The other issue with symbols is there could be clashes, because we check at every level of nesting. So I’d rather the more accurate version. But we could have a global IdDict and register stuff there or something like that.

However for me part of the motivation was just dropping Compat.jl to remove another dep and simplifying by only supporting the LTS and newer.

ericphanson avatar Jul 21 '25 12:07 ericphanson