AlgebraicJulia / GATlab.jl

GATlab: a computer algebra system based on generalized algebraic theories (GATs)
https://algebraicjulia.github.io/GATlab.jl/
MIT License
21 stars 2 forks source link

"dispatch on return type" overload resolution #127

Open olynch opened 8 months ago

olynch commented 8 months ago

A much wanted feature in Julia is "dispatch on return type". In GATlab we potentially have the infrastructure to include either inferred or explicitly declared return types in the dispatch resolution. This would enable, for instance, using 0 for both scalars and vectors in the theory of a module over a ring.