Replies: 6 comments 17 replies
-
这里的 B 应该怎么处理(尤其是*****ERROR处)? 可能方案:
|
Beta Was this translation helpful? Give feedback.
-
最后一个 check 里面的 unify 该如何处理? 现有的想法可能是 infer argType的时候得到 ImplicitPi 也要新建变量把 implicit args 消除 |
Beta Was this translation helpful? Give feedback.
-
所以现在 infer 和 check 的函数类型应该是什么 |
Beta Was this translation helpful? Give feedback.
-
能不能给 |
Beta Was this translation helpful? Give feedback.
-
这是根据ICFP20的论文改写的过程 |
Beta Was this translation helpful? Give feedback.
-
可以看到这个check可以通过,并且插入了一个新的implicit abstraction
但是像这样,check的右侧是一个在上下文中已经新建的variable,那么按照之前的算法会直接unify不会插入新implicit abstraction 但是这个A是可能在后来被
ICFP20的论文改善了这里的行为,通过插入curried implicit abstraction (这里用Telescope表示) 来接受可能后来额外需要接受的implicit arg 此时 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Look at the comments
Beta Was this translation helpful? Give feedback.
All reactions