Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
计算 Clojure 函数的圈复杂度的合理方法是什么?根据“if”和“cond”等函数计算决策点很容易,但使用宏开始变得棘手。有人尝试过 Clojure 或其他函数式语言吗?
宏是一种抽象,不应该对 CC 计算做出贡献,就像函数调用一样。
也就是说,我不认为 CC 对 Clojure 来说特别有趣。我会对衡量过度使用可变性的东西更感兴趣。