【发布时间】:2021-12-27 08:26:39
【问题描述】:
当define不在程序的最外层时,define可以出现在主体的中间吗?例如:
(define (f x)
(display x)
(define n 1) ; <- Is this allowed?
(+ n x))
或者内部defines 必须总是出现在正文的开头?例如:
(define (f x)
(define n 1) ; <-
(display x)
(+ n x))
【问题讨论】: