Conversation

Has there been any work on looking at the relationship between monomorphised, static polymorphism (like in C++ and Rust, etc), and staged programming? I think the interesting thing here is that instead of inlining stuff, we sort of memoize each instantiation?
2
9
One thing I'm thinking about is that you don't always know at the time of writing the function what your caller wants to do. Do they want to monomorphise? Do they want to predictably inline it (like a macro)? Do they wan an indirect call? Do they want to let the compiler decide?
1
1