-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: polymorphic calls #901
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #901 +/- ##
==========================================
- Coverage 85.64% 85.56% -0.08%
==========================================
Files 78 78
Lines 14417 14444 +27
Branches 14417 14444 +27
==========================================
+ Hits 12347 12359 +12
- Misses 1436 1445 +9
- Partials 634 640 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
An alternative:
The advantage of this is simpler call node and keeping type application localised to |
The thing about that is that TypeApply works only on Value edges, not Static ones.
When we simplify to "no polymorphic lambdas", TypeApply will disappear - but Call will retain some of its essence (as here).
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: doug-q ***@***.***>
Sent: Thursday, March 28, 2024 9:45:59 AM
To: CQCL/hugr ***@***.***>
Cc: Alan Lawrence ***@***.***>; Author ***@***.***>
Subject: [EXT] Re: [CQCL/hugr] fix: polymorphic calls (PR #901)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
An alternative:
* Call remains as is. i.e. it stores only a FunctionType.
* The builder inserts a LeafOp::TypeApply if necessary
The advantage of this is simpler call node and keeping type application localised to TypeApply
—
Reply to this email directly, view it on GitHub<#901 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXFI6XVJQFNRODZN3WQEUD3Y2PKEPAVCNFSM6AAAAABFLJBU5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUG44DSNBVHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This makes perfect sense, thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
BREAKING CHANGE:
Call
nodes now constructed viatry_new
function