in an HM type system we’d generate a fresh type variable for every node in the AST, unify using a disjoint set or whatever, and substitute out the solutions.
with strictly first-order unification we don’t have to think too hard because solved variables can’t depend on locals.
Conversation
Ohh, this is all really helpful! Might take me a while to unpack - I haven't gone as deep as you, but it rings many bells from looking at 's elaboration-zoo a while back. It's super handy to have some of these problems stated explicitly in this way though!
2
2
These would definitely trip up folks if they weren't careful, and I assume there's many people constantly tripping over the same thing.
I actually kinda think there aren’t that many, cos the people who aren’t flying solo are probably grad students with clueful advisors. What I wouldn’t give for an actual *teacher* :\
1
6
Yeah, going solo is _really_ hard going. Seems to take, like, ten times longer do get anywhere. At times like these I'm really thankful for twitter at the very least!
1
2
Show replies

