-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC 693 is merged. Update links and so forth.
- Loading branch information
1 parent
4bb2ed4
commit cf25ad8
Showing
3 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
- Feature Name: variadic-generics | ||
- Start Date: 2015-04-03 | ||
- RFC PR: (leave this empty) | ||
- Rust Issue: (leave this empty) | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
# Summary | ||
|
||
|
||
# Motivation | ||
|
||
Why are we doing this? What use cases does it support? What is the expected outcome? | ||
|
||
# Detailed design | ||
|
||
## Introduce the `Tuple` trait | ||
|
||
The `Tuple` trait is implemented for tuples of any arity. It is a lang | ||
item. | ||
|
||
```rust | ||
trait Tuple { } | ||
``` | ||
|
||
## Expandable parameters | ||
|
||
In a `fn` signature, a `..` may appear before the type of any | ||
argument. This type must implement the `Tuple` trait. The `..` | ||
indicates that the single | ||
|
||
```rust | ||
trait Fn<A:Tuple>: FnMut<A> { | ||
fn call(&self, args: ..A) -> Self::Output; | ||
} | ||
``` | ||
|
||
# Drawbacks | ||
|
||
Why should we *not* do this? | ||
|
||
# Alternatives | ||
|
||
What other designs have been considered? What is the impact of not doing this? | ||
|
||
# Unresolved questions | ||
|
||
What parts of the design are still TBD? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file seems like an accidental addition