每当我试图在函数中包含一个音色p语句时,我都会得到一个错误:
project.clj
(defproject sketch "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[com.taoensso/timbre "3.1.1"]])core.clj
(ns user (:require [taoensso.timbre :as timbre]))
(timbre/refer-timbre)
(defn tst [a]
(p :tf (+ a a)))输出(苹果酒/苹果酒)
Unable to resolve symbol: p in this context, compiling:(NO_SOURCE_PATH:2:3)但是其他音色函数/宏(如profile和spy )工作得很好。
发布于 2014-03-07 02:42:14
发布于 2019-02-19 12:25:44
如果您只是对开发过程中花费的时间感兴趣,那么时间函数就足够了。
(time (some-work))https://stackoverflow.com/questions/22240249
复制相似问题