Open gibson042 opened 8 months ago
I would expect "fully cached" - any implicit iteration done by patterns should be populating and using the cache.
On a rethink, it wouldn't make any sense to do this - I think the if
part is "just javascript" and the caching doesn't apply there. If you want the cache, use a binding in the pattern.
Does your rethink lead you to "partially cached" or to "uncached"?
Uncached. Caching only applies in patterns.
Consider the following:
What will be logged—"fully cached" because the
if
expression uses the cached results for both gettingsubject.iterable
and for getting an iterator for that, "partially cached" because theif
expression does not use cached results for the first Get but still remembers results from the iterator, or "uncached" because e.g. theif
expression is independent of caching?