I found the answer in the clojurescript wiki under "The REPL and
Evaluation Environments".
https://github.com/clojure/clojurescript/wiki/The-REPL-and-Evaluation-Environments
(require x) is not supported but (ns ...) supports :require.
On Dec 18, 4:23 pm, Fiel Cabral
wrote:
>
I'm trying to learn ClojureScript and I get this error when calling
require in the repljs REPL:
(I ran these commands after cloning the git repo last night and
running script/bootstrap)
./script/repljs
"Type: " :cljs/quit " to quit"
ClojureScript:cljs.user> (+ 1 1)
2
ClojureScript:cljs.user> (zer
Does ClojureCLR support PInvoke and the DLLImport attribute or
something similar?
(e.g., from PInvoke.net)
DllImport("crypt32.dll", EntryPoint = "CertGetNameString", CharSet =
CharSet.Auto, SetLastError = true)]
static extern System.UInt32 CertGetNameString(IntPtr CertContext,
System.UInt32 lType,
Hello Clojure users,
This is a dumb question but I'd like to write something equivalent to this
in Clojure:
public String loop_with_exception(int retries)
{
for (int n = retries; n > 0; n--) {
try {
return some_io_operation();
} catch (IOException e) {
continue;
}
}
r