Skip to content
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

Extended Syntax: non-shared elimination #84

Merged
merged 4 commits into from
Apr 19, 2020

Conversation

Anabra
Copy link
Member

@Anabra Anabra commented Apr 10, 2020

See #32

@Anabra Anabra added the review Ready for review label Apr 10, 2020
@Anabra Anabra requested review from csabahruska and andorp April 10, 2020 13:51
@Anabra Anabra self-assigned this Apr 10, 2020

change = if exp' /= exp then DeletedHeapOperation else NoChange

tyEnv = either error id $ typeEnvFromHPTResult _hptResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit fishy. We should not convert HPT results in the transformation. :) Something to worth looking at when we clean the pipeline code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an impossible case?

Copy link
Member Author

@Anabra Anabra Apr 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andorp Yep, there is something wrong about this. I can't recall the reason why I implemented the change. I will create an issue about this.
@csabahruska Well, if the sharing result is correct, we should always get a valid HPT results and thus a valid type env. This is basically a safety catch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #95


change = if exp' /= exp then DeletedHeapOperation else NoChange

tyEnv = either error id $ typeEnvFromHPTResult _hptResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this an impossible case?

@Anabra Anabra merged commit e5f4c49 into 32-extended-syntax Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants