RFC: Coercible and HasPrefix for Zero Cost Coercions
Open
Nobody has claimed this yet.
A-coercions
postponed
T-lang
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
Description
This is largely based on (with lots of copied text) @glaebhoerl's proposal in mozilla/rust#9912, but with a few changes:
- I formalized the idea of "contexts" by using GHC's roles.
- I used this role system to include user-defined pointers and data structures.
- I dropped contravariance for simplicity. This may have been a bad idea, but it's unclear how useful contravariance is.
Tracking issue for postponed PR #91
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading this RFC alongside the referenced mozilla/rust#9912 proposal and the postponed PR #91. Review how the RFC defines contexts with GHC's roles, user-defined pointers and data structures, and the decision to omit contravariance. Done means resolving the proposal's open design questions and determining the status or next step for PR #91.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100