I wish this was valid: let (l, r) = [1u8, 2u8];
-
-
Replying to @yoshuawuyts1 reply 0 retweets 1 like
-
Replying to @killercup
destructure into a tuple from an array: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=98aeaa156ac1fa54d24a7e2cbe1fade2 …
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts @killercup
Or more specifically: I wish I could index into a tuple as if it were an array. I believe the in-memory representation of the two is identical. Being able to switch between the two would be useful for certain cases!
2 replies 0 retweets 2 likes -
Replying to @yoshuawuyts
FYI I don't think the memory layout of tuples is defined unless it is repr(c)
1 reply 0 retweets 2 likes
Replying to @killercup
Ahh, yes okay that's a fair point also. I guess they *are* anonymous structs after all.
3:01 PM - 7 Sep 2019
from Berlin, Germany
0 replies
0 retweets
0 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.