For the moment, the compiler only accepts polymorphic definitions with a simple Name as the pattern. This should be easy to extend to more complicated patterns, like
let x, y |T| = (a: T => a), (b: T => b)
The main challenge is (as per usual) the THIR-to-MIR step.
For the moment, the compiler only accepts polymorphic definitions with a simple
Name
as the pattern. This should be easy to extend to more complicated patterns, likeThe main challenge is (as per usual) the THIR-to-MIR step.