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

where the where: GAT syntax #120

Closed
nikomatsakis opened this issue Oct 5, 2021 · 4 comments
Closed

where the where: GAT syntax #120

nikomatsakis opened this issue Oct 5, 2021 · 4 comments
Labels
meeting-proposal Proposal for a lang team design meeting meeting-scheduled Lang team design meeting that has a scheduled date T-lang

Comments

@nikomatsakis
Copy link
Contributor

Summary

Proposed: to alter the syntax of where clauses on type aliases so that they appear after the value:

type StringMap<K> = BTreeMap<K, String>
where
    K: PartialOrd

This applies both in top-level modules and in trats (associated types, generic or otherwise).

Background reading

https://rust-lang.github.io/generic-associated-types-initiative/design-discussions/where-the-where.html

rust-lang/rust#89122

About this issue

This issue corresponds to a lang-team design meeting proposal. It corresponds
to a possible topic of discussion that may be scheduled for deeper discussion
during one of our design meetings.

@nikomatsakis nikomatsakis added meeting-proposal Proposal for a lang team design meeting T-lang labels Oct 5, 2021
@nikomatsakis
Copy link
Contributor Author

cc @jackh726

@nikomatsakis
Copy link
Contributor Author

Scheduled for Oct 13

@nikomatsakis
Copy link
Contributor Author

@Progdrasil

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting-proposal Proposal for a lang team design meeting meeting-scheduled Lang team design meeting that has a scheduled date T-lang
Projects
Development

No branches or pull requests

2 participants