GitHub - jiayouxujin/SICP: SICP-Solutions · GitHub
Skip to content
jiayouxujinPublic

About

SICP-Solutions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

168 Commits

Folders and files

Repository files navigation

SICP

Ref

  1. 环境安装教程

Notes

Chapter01

Applicative-order vs normal-order

(define (try a b)
  (if (= a 0) 1 b))
  • (try 0 (/ 1 0))会报错,【mit-scheme默认是applicative-order,all arguments will be evaluated when procedure is applied】
  • 如果是normal-order就不会报错,它会使用lazy evaluation,当参数需要的时候才会计算

About

SICP-Solutions

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages