Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upCan we drop the mandatory type annotations on Optional and List? #73
Comments
This comment has been minimized.
This comment has been minimized.
|
Note that type annotations are not required on non-empty lists I'm reasonably sure they will be required on empty lists and optionals for the foreseeable future. However, |
This comment has been minimized.
This comment has been minimized.
|
I see now that this is really to drive the typing judgement because you don't do inference. One question is to first ask if that's set in stone, or would we be open to adding some type inference? |
This comment has been minimized.
This comment has been minimized.
felix91gr
commented
Feb 5, 2018
|
Hmm. Type inference is very CPU intensive and it’s not trivial to implement
efficiently.
That said, dhall isn’t turing-complete, so there may be some really easy
way to do type inference that I don’t know of. What’s there in the
literature?
…On Mon, Feb 5, 2018 at 7:07 PM Oliver Charles ***@***.***> wrote:
I see now that this is really to drive the typing judgement because you
don't do inference. One question is to first ask if that's set in stone, or
would we be open to adding some type inference?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALNBJ0YFeft5yQ4ZcL2eOjpPFF0tMZHfks5tR3uNgaJpZM4RjlOC>
.
|
This comment has been minimized.
This comment has been minimized.
|
For me the main constraint is how difficult it is to standardize any type-checking algorithm that uses type inference. I'm not ruling it out but I'd like to see additional backends for Dhall before making large changes to the semantics |
deepfire
referenced this issue
Feb 22, 2018
Closed
Lack of unification prevents true separation of data and type "schema" #103
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I'd be OK with that. I still think ultimately the lack of type inference is something we'll need to address, but this issue isn't the place for it. Closing! |
ocharles commentedJan 18, 2018
Title says it all, these feel like a bit of a wart in what is otherwise a lovely format to work in.