Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It just so happens that I started playing with Clojure yesterday! I didn't quite manage to get anything to work in LT, however.

E.g. if I do Cmd+Enter on a definition, I get this:

  clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to
  resolve symbol: defn in this context, compiling:…
If I click 'Make current editor and instarepl' I get errors like this:

  clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to
  resolve symbol: subs in this context, compiling:(NO_SOURCE_PATH:9)
It's all rather confusing. Maybe there's a manual somewhere I should read, but I couldn't find it.


All files in Clojure require a namespace form at the top:

   (ns foo.bar)
Since you don't have one, clojure.core isn't available and it freaks out. I'll look into setting the default namespace of file so that it's a little nicer for newcomers :)


oh. Thanks.

It's not a problem when using 'clj' from the command line.

Here are some other issues I ran into (FWIW):

- println works, but print doesn't. - I was expecting cmd+A and then cmd+enter to evaluate everything. - Why are there (seemingly) no shortcuts for the command bar? - Activating 'Make current editor and instarepl' twice in a row, clears all the text in the editor… that's weird - The text cursor got confused at some point

But I guess it's an alpha version. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: