@oli_obk is there a way const generics would allow us to define impls for tuples of length n?
Maybe a really odd question because they're different from arrays, but like, can this be / is this a thing?
-
-
Replying to @yoshuawuyts @oli_obk
this could be but needs further RFCs but iirc this has been part of the "things we want from const generics" discussion for a while, it's just something we'll deal with after const generics happen
1 reply 0 retweets 2 likes -
It's tricky because Tuple can't be Tuple<T, N> since tuples can have mixed types. You could have an RFC for a specific HomogeneousTuple<T, N> type and deal with the variadic generics problem later.
1 reply 0 retweets 2 likes
Replying to @ManishEarth @oli_obk
Oh cool, glad to hear it's not at all impossible (even though it may be a while). Thanks for answering!
4:52 AM - 18 Sep 2019
from Berlin, Germany
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.