3 ms·
I thought he was saying that if you think it's a list you might write the code to iterate across it twice. Then you happen to have a generator and you might thi
by lutorm 17y ago
I thought he was saying that if you think it's a list you might write the code to iterate across it twice. Then you happen to have a generator and you might think that "it'll be just like a list" if you pass it instead.
Doesn't seem quite so silly to me.
- Goladus 17y agoIt's also a fundamental issue with dynamic languages. Lots of code fails silently if you make faulty assumptions about the types of parameters.