by ltbarcly3 · 1y ago · 0 comments
Alternatives that aren't dumb:
for x in range(2**256): # not infinite but go ahead and run it to the end and get back to me
from itertools import repeat
for x, _ in enumerate(repeat(None)): # slightly more annoying but does work infinitely
Granted these aren't clever or non-performant enough to excite functional code fanboys.