我在Julia中有一个简单的代码: X = 1.0 X = X*iprintln("X = ",X) 抛出错误:LoadError: UndefVarError: Xnot defined 为什么会发生这种情况?如何在Julia中定义一个简单的变量?还会抛出一个警告: Warning: Assignment to `X` in soft scope is ambi
我之前问过一个类似的问题,julialang: can (should) this type error be caught at compile time?,我想提出一个相关的问题。nonexist_fun() # call to a non existing function => error
end 这里调用了一个不存在的函数nonexist_fun()并导致错误。不幸的是,该错误只在运行时被发现,在somefun()中花费了很长时间执行之