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

Make unrestricted linear in the (!*) #3506

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joelberkeley
Copy link
Contributor

Description

It seems only natural for unrestricted to be linear in (!*) .

Should this change go in the CHANGELOG?

  • If this is a fix, user-facing change, a compiler change, or a new paper
    implementation, I have updated CHANGELOG_NEXT.md (and potentially also
    CONTRIBUTORS.md).

@joelberkeley joelberkeley changed the title Make unrestricted linear in its argument Make unrestricted linear in the (!*) Mar 8, 2025
Comment on lines +27 to +30
||| Unpack an unrestricted value in a linear context
public export
unrestricted : !* a -@ a
unrestricted (MkBang unr) = unr
Copy link
Contributor Author

@joelberkeley joelberkeley Mar 8, 2025

Choose a reason for hiding this comment

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

I notice we lose (.unrestricted). Not sure what's the most favourable way to handle that.

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.

1 participant