lojikil / coastML

a tiny experimental ML dialect combining Yeti & CarML
ISC License
12 stars 0 forks source link

type vars #10

Closed lojikil closed 1 year ago

lojikil commented 1 year ago

We need to correctly handle type variables in output:

type Result[A B]
| Left is [A]
| Right is [B]
epyt

This will produce Python code with m_0: A, but that's not the type, that's a type variable. We can do two things:

I'd probably like to do the latter, but the former isn't terrible to start (and indeed that's how I've been manually handling it thus far).