Rfcs: Syntax sugar for prefix-style type parameter lists.

Created on 24 Sep 2014  ·  2Comments  ·  Source: rust-lang/rfcs

This is a proposal for type parameter lists that come well before the
actual generic items. Example:

type <T: Unwieldy+Traits+Go+Here,
      U: Even+More+Traits> {
  fn foo(t: T) -> U { ... }
  fn bar(u: U) -> T { ... }
}

Tracking issue for postponed PR #122

T-lang postponed

Most helpful comment

Where clauses have been pretty successful, and so I don't think there is quite the motivation for this feature any more. I propose we close this issue, any objections?

All 2 comments

Where clauses have been pretty successful, and so I don't think there is quite the motivation for this feature any more. I propose we close this issue, any objections?

After Nick's triage two years ago there has been zero movement and I don't think this is going anywhere; so I'm closing this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

p-avital picture p-avital  ·  3Comments

steveklabnik picture steveklabnik  ·  4Comments

clarfonthey picture clarfonthey  ·  3Comments

3442853561 picture 3442853561  ·  3Comments

camden-smallwood-zz picture camden-smallwood-zz  ·  3Comments