Uh oh!
There was an error while loading. Please reload this page.
Proposal to add methods to homogeneous tuples ((T, T, ..., T)) so that they can be used as slices (&[T]) - #104
Conversation
nikomatsakis
commented
Jun 2, 2014
Implemented in rust-lang/rust#14604 |
There was a problem hiding this comment.
IMO the RFC as presented is fine, but this alternative really is more elegant. I'd prefer it if at all possible.
glaebhoerl
commented
Jun 2, 2014
For what it's worth this would be subsumed by #91 ( W.r.t. indexing tuples, I've had the idea that their components could be exposed as fields, except numbered rather than named, so: |
bstrie
commented
Jun 2, 2014
Given that this would only work on homogenous tuples I suppose that this wouldn't preclude the possibility of allowing the compiler to optimize tuple representation? |
bstrie
commented
Jun 2, 2014
@glaebhoerl, given that these methods would only be implemented on tuples that are congruent to arrays, I think we might as well just reuse the existing array indexing syntax. |
glaebhoerl
commented
Jun 2, 2014
@bstrie The methods @nikomatsakis is proposing would only be for homogenous tuples... but the |
eddyb
commented
Jun 3, 2014
This is one of the tricks I realized I could have in the library, using VG. I think the old-style RFC has an example of it, actually. |
nikomatsakis
commented
Jun 10, 2014
We decided in meeting to take no action here (yet). |
Allows for graceful shutdown of the oneshot by closing and then checking for a message. Closesrust-lang#104
Title says it all!