[求助帖]Scheme里怎么定义一个无参数的函数??
lisp吧
全部回复
仅看楼主
level 8
田井中律😁
楼主
我突然想到。Scheme里怎么定义一个无参数的函数??
Cl里是 :(defun hello-world () (format t "hello, world"))
Scheme里改怎么定义呢?还是定义不了,因为函数与数据共享一个命名域??
2012年10月21日 08点10分
1
level 8
田井中律😁
楼主
大神们都到哪里去了
2012年10月21日 10点10分
2
level 6
狂人fantasy
(define (func) body)
(define func (lambda () body))
2012年10月21日 12点10分
3
田井中律😁
虽然我是抠脚大汉,但是我还是要说I love U
2012年10月21日 13点10分
狂人fantasy
回复 airica1 :
2012年10月22日 09点10分
level 13
nadesico19
虽然貌似已经解决了,还是忍不住贴个传送。。。https://tieba.baidu.com/p/1904306418
2012年10月21日 19点10分
4
田井中律😁
弄个emacs配置scheme方法吧
2012年10月22日 04点10分
nadesico19
回复 airica1 :不知道此贴11L能满足需求否。。。
https://tieba.baidu.com/p/1855833563
2012年10月22日 04点10分
田井中律😁
回复 nadesico19 :是知道怎么简单配置的,关键是不知道怎么配置一个类似于CL的slime的Scheme的环境。。
2012年10月22日 04点10分
nadesico19
回复 airica1 :
小白默默路过
2012年10月22日 05点10分
1