gpt4 book ai didi

clojure - 是否可以在ClojureScript:require中使用:refer:all?

转载 作者:行者123 更新时间:2023-12-03 10:38:52 26 4
gpt4 key购买 nike

我只是在尝试ClojureScript,首先将在Clojure中编写的内容转换为cljx。

当我尝试编译它时,我得到:

clojure.lang.ExceptionInfo: :refer must be followed by a sequence of symbols in :require 

我在网上找到了一些倾斜的引用文献,但没有说明我是否应该能够在ClojureScript程序中使用 :refer :all

如果我做不到,限制的原因是什么?

最佳答案

不,这是故意不可能的。最近在ClojureScript邮件列表中有一个conversation:refer :all相关,并且看起来它不再受支持。

引用David Nolen的话:

It's just bad style and as far I know the only reason it hasn't changed in Clojure is because the core team is very adamant about preserving backwards compatibility when possible. The conspicuous lack of naked :use in ClojureScript was intentional.

关于clojure - 是否可以在ClojureScript:require中使用:refer:all?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24463469/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com