28 ms·
The part that confuses me is that they use “it” to name a variable that is not actually an iterator. That’s very bad style. I would name it “s”.
by senkora 2mo ago
The part that confuses me is that they use “it” to name a variable that is not actually an iterator. That’s very bad style. I would name it “s”.
- pizza234 2mo agoNo argument that it's inappopriate, but I wonder if the author works with other programming languages - in some (Groovy, Kotlin, Ruby), "it" is the implicit block parameter.
- pwdisswordfishq 2mo agoIt's "it" as in the pronoun, not as in "iterator".
- zbentley 2mo agoWe call that “Larry Wall nomenclature”.
- Maxatar 2mo agoHaha I always interpreted "it" to mean literally the word "it". I didn't realize it's a short-hand form for iterator, but now I'm not so sure if that's universal or if there's a genuine split.