思考下面的表達式:計劃」的條件表達式和計算順序
(cond (p1 (some_complex_expression1))
(p2 (some_complex_expression2))
(p3 (some_complex_expression3))
...
(else (some_complex_expressionN)))
是那些(some_complex_expressionX)
S於需求評估? (即,'(some_complex_expressionX)'僅在謂詞本身之前被評估,pX
爲真),或者它們是否遵循適用順序(在嘗試謂詞之前儘可能多地評估它們)
如果這是實現相關的,那些以下實現如何?
mit-scheme
guile
racket
that scheme for sicp
r5rs