Why do we have cached results?

Beginners do something like

for x in small_list:
    if x in SimpleThing(42).list():
        echo("Found!", x)

Advanced users should know how to do

temp = ComplicatedThing(10^6).list()
matches = [x for x in big_list if x in temp]

So when is caching results useful?

--
Jori Mäntysalo

Reply via email to