Skip to content

Implement new Coercion rules#20

Merged
nomeata merged 14 commits intomasterfrom
joachim/subtype
Dec 5, 2022
Merged

Implement new Coercion rules#20
nomeata merged 14 commits intomasterfrom
joachim/subtype

Conversation

@nomeata
Copy link
Copy Markdown
Owner

@nomeata nomeata commented Apr 8, 2022

In dfinity/candid#311 the candid subtyping rules change again: We now do value-driven coercion, ignoring type annotations everywhere, with the exception of reference types.

This actually simplifies the code, as there is now a self-contained subtyping check, useful independently, and a simpler coercion function.

TODO:

Comment thread src/Codec/Candid/Coerce.hs
@nomeata nomeata marked this pull request as ready for review December 5, 2022 07:42
@nomeata nomeata merged commit 87a4f01 into master Dec 5, 2022
@nomeata nomeata deleted the joachim/subtype branch December 5, 2022 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants