【发布时间】:2011-01-24 12:14:48
【问题描述】:
难道不能把 Scheme 中的函数和其他列表一样对待吗?
基本上,我想做的是这样的:
(define (foo) "hello")
(cdr foo) ; or similar, should return the list ((foo) "hello")
我找到了a similar discussion 关于这个,如果这在Scheme 中是不可能的,我会感到有点失望。如果是这样,为什么这是不可能的?其他lisps有可能吗?
编辑:将 (cdr 'foo) 更改为 (cdr foo) - 这是误导性的。我在问,为什么我不能以列表的形式访问函数?
【问题讨论】:
标签: reflection lisp scheme metaprogramming homoiconicity