Unbaked Idea: DRY using "parameterized inline modules"

As long as we're spitballing syntaxes, here's a random thought: we could use an explicit ...

mod<A, B, C> {
    fn foo<..>() -> B { ... }
    fn bar<.., X>() -> X { ... }
}
2 Likes