4 ms·
I disagree, I don’t think there’s any meaningful benefit. For example, lets say we iterated over strings as follows. for char in my_str.chars(): foo() Tha
by cauthon 6y ago
I disagree, I don’t think there’s any meaningful benefit. For example, lets say we iterated over strings as follows.
for char in my_str.chars():
foo()
That wouldn’t sacrifice any ergonomics, being consistent with how we already iterate over dictionary contents with d.items(), and it’d address all the concerns in the parent comment link