nobody at all asked for this, but these are the reasonable ways to iterate over all 32-bit values https://gcc.godbolt.org/z/xR6N11
-
-
Replying to @johnregehr
I always want for ... in to support iterating through a type. for x in int { // obviously this should Just Work }
4 replies 0 retweets 17 likes -
-
Replying to @johnregehr @stephentyrone
that seems like an amazing way to make nightmare typos for an extremely niche usecase
1 reply 0 retweets 0 likes -
Replying to @Gankra_ @stephentyrone
post your worst typos of this and we'll rate nightmare potential
2 replies 0 retweets 3 likes -
Replying to @johnregehr @stephentyrone
if this is implemented by making `int` produce a value that is an iterator/immutable container, then you get the wonderful: Set<int> ints = /* calculations */ if (int.contains(val)) {
1 reply 0 retweets 1 like
TBH now I think this should be introduced just for the hilarity of imagining that landing in production
2:37 PM - 14 Jun 2019
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.