Skip to content

2024-09-04 submission: "Why Rust needs scoped generics" #5888

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

Merged
merged 1 commit into from
Sep 5, 2024
Merged

2024-09-04 submission: "Why Rust needs scoped generics" #5888

merged 1 commit into from
Sep 5, 2024

Conversation

ais523
Copy link
Contributor

@ais523 ais523 commented Sep 4, 2024

A submission for the "Observations/Thoughts" section of This Week In Rust.

Copy link
Contributor

@mariannegoldin mariannegoldin left a comment

Choose a reason for hiding this comment

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

TY! Approved

@mariannegoldin mariannegoldin merged commit f73fa52 into rust-lang:master Sep 5, 2024
1 check passed
@madsmtm
Copy link

madsmtm commented Sep 6, 2024

Don't know where to discuss this, so thought I'd write quickly here:

Very insightful post! The problem of passing values to types reminds me of contexts and capabilities that was discussed a few years ago - I suspect that "just" contexts and capabilities + generativity would be able to solve the problems that you outlined to begin with, though I am unsure, in any case your proposal is certainly more powerful!

@ais523
Copy link
Contributor Author

ais523 commented Sep 6, 2024

Very insightful post! The problem of passing values to types reminds me of contexts and capabilities that was discussed a few years ago - I suspect that "just" contexts and capabilities + generativity would be able to solve the problems that you outlined to begin with, though I am unsure, in any case your proposal is certainly more powerful!

Thanks for the feedback! (And thanks especially for the link – it's sent me down a rabbit hole of prior art on this subject.) I agree that this is effectively a cross between automatic context passing and generativity – but it's interesting that many of the comments on the automatic context passing proposals thought that it would need some sort of link to the type system to be useful.

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.

3 participants