作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想从函数的参数加载 Racket 方案中的外部 rkt 文件。例如,
(define (test fileName)
(include fileName)
)
但是,我收到错误消息,指出 fileName 不是路径名字符串、file' 形式或
lib' 形式。
有没有办法解决这个问题,或者有其他更好的方法来包含来自动态文件名的文件?
最佳答案
最好的方法是将外部文件变成一个模块,然后使用dynamic-require
。 .
关于include - Racket 方案 : Include externel rkt file with dynamic file name,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15467117/
我想从函数的参数加载 Racket 方案中的外部 rkt 文件。例如, (define (test fileName) (include fileName) ) 但是,我收到错误消息,指出 fi
我是一名优秀的程序员,十分优秀!