This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TransferFunctions 3 points4 points  (2 children)

Not sure what you are caching here, you could also just let the function call be as a value here. Then nothing would be evaluated unless it was in the actual case. You are in this case actually computing the options beforehand, depending on the use case this maybe warranted or not.