#' namespace / name_of_function中的错误

时间:2014-05-22 18:06:18

标签: clojure compiler-errors

我正在Clojure做一个项目。当我运行程序时,我收到一个错误:

#'targil4_2_new.core/writeAndNext

其中targil4_2_new是我的命名空间的名称,writeAndNext是此命名空间中函数的名称。

我如何知道问题所在?

1 个答案:

答案 0 :(得分:0)

你是如何称呼你的功能的? 你能告诉我你的跟踪错误吗?

在您的示例中,您应该以这种方式调用您的函数:

1 - 需要函数名称空间:

在REPL中:

(require '[targil4_2_new.core :as xpto])

或在您的申请中:

(ns my-app.old-core
  (:require [targil4_2_new.core :as xpto]))    

2 - 打电话给你的功能:

(xpto/writeAndNext ) //you can add your arguments