lazyevaluation-computerscienceatuva-universityofvirginia.pptVIP

  • 6
  • 0
  • 约 23页
  • 2016-10-06 发布于天津
  • 举报

lazyevaluation-computerscienceatuva-universityofvirginia.ppt

lazyevaluation-computerscienceatuva-universityofvirginia

* * * * * * Lecture 31: Truthiness Menu Using Laziness Evidence of Laziness? (Quiz Results) Laziness through Truthiness (Static Type Checking) Lazy Evaluation Recap Don’t evaluate expressions until their value is really needed We might save work this way, since sometimes we don’t need the value of an expression We might change the meaning of some expressions, since the order of evaluation matters Change the Evaluation rule for Application Use thunks to delay evaluations Lazy Application def evalApplication(expr, env): # make Thunk object for each operand expression ops = map (lambda se

文档评论(0)

1亿VIP精品文档

相关文档