Conversation

This Tweet is from a suspended account. Learn more
Why? This was my also my understanding, you either have some inference (even if not everywhere), or absolutely none. What am I missing?
1
3
This Tweet is from a suspended account. Learn more
This Tweet is from a suspended account. Learn more
Yeah, I was pretty surprised initially to see that Dhall required so many annotations - it seems like it could really benefit from having a synthesis mode in its type checker! I don't know if they have considered and rejected it for some reason though. 🤔
1
It has been considered and rejected on the grounds of "too hard to specify". But the next plan with Dhall is to make the spec machine verified, so that will no longer apply
1
Dhall has neither, it takes what is basically the easiest to specify approach, even if it's means lots of annotations (e.g., empty lists)
1
2
But yeah, it's pretty close to the regular rules - you just need to annotate what mode the different rules are in. Granted, it does get more complicated if you want to have special cases, eg. synthesizing the type of a list if all the elements can be synthesized as well.
1