简体   繁体   English

为什么 clojure.core 中的某些 Clojure 函数没有记录?

[英]Why some of the Clojure functions in clojure.core are not documented?

I found some of the Clojure functions in clojure.core are not documented.我发现 clojure.core 中的一些 Clojure 函数没有记录。

Some of them are private functions.其中一些是私有函数。 But others like chunk-* and await1 and so on are public but do not have documents.但是其他像await1 chunk-*await1等是公开的,但没有文档。 Does that have a specially meaning, or just because of they are new added functions?是不是有什么特殊的意义,还是只是因为它们是新增的功能?

Thanks!谢谢!

The undocumented functions in clojure.core are considered to be part of the implementation, not part of the public interface (so the lack of docstring is intentional). clojure.core 中未记录的函数被认为是实现的一部分,而不是公共接口的一部分(因此缺少文档字符串是有意的)。 In some cases, undoc'ed functions are called by the expansion of public macros so they must be public.在某些情况下,未记录的函数由公共宏的扩展调用,因此它们必须是公共的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM