0:01 Chouser: well, I think this is right, because I can compile, and then run from the Repl without the .clj files in the path (just the compiled .class files)
0:02 when I try to use the -main fn in my compiled class straight from the command line, I get: java.lang.IllegalStateException: Var null/null is unbound
0:02 But I think that must be a separate bug
0:04 bah! yes, it's in fact a bug in my own source code.
0:05 hm... or maybe not. I mean, i had a bug, but it doesn't seem to be causing that exception.
0:09 ok, ClojureScript must not be calling Compiler/analyze correctly when running from -main
0:09 Must be some var I'm supposed to bind.
0:17 mmcgrana: well i gtg, good luck on figuring that out, sorry i couldn't really help
0:18 Chouser: np, thanks for poking at it with me
0:18 mmcgrana: yep
0:20 yangsx: hi, can I tell slime to use the latest version after clojure.jar is updated?
0:22 _Jordan_: I don't suppose there's already a built-in "index-of" function I'm overlooking? Something like: http://
0:27 Chouser: _Jordan_: I don't know of any.
0:28 _Jordan_: Thanks
0:29 Chouser: (count (take-while (complement #{'x}) '[z y x w]))
0:29 but that doesn't give you nil on failure
0:30 I guess I don't use indexes into seqs much. You're sure you need it?
0:35 _Jordan_: no, I probably don't. Hold on, let me figure out what your snippet does :)
0:36 hiredman: any progress on that pretty printer?
0:37 Chouser: nope, gave it up since steven_h appears to be working on it
1:09 larrytheliquid: when you import functions into a namespace (in order to not fully qualify them) with "(use some-namespace", i get a filenotfound error due to the classpath
1:09 does that mean you cannot "use" functions from dynamically created namespaces?
1:16 nm, refer does the trick
2:29 thearthur: what is the proper way to nest a fn inside another?
2:29 (def bla4 (let [baz (fn [x y] (when (pos? y) (lazy-cons x (baz x (dec y)))))]))
2:30 this gets me a null pointer exception in compilation (sometimes)
2:31 hoeck: thearthur: (fn bar [x y] ...)
2:31 you can name the anonymous function, so that it references to itself
2:32 (let [foo (fn this [] this)] (= foo (foo))) -> true
2:33 thearthur: are you saying the function has 2 names, one for recuring and another by which it is referenced?
2:35 hoeck: well, it has the name to where you bound it in the (let [ ..]) and the name you give it internally
2:36 the function itself doesn't see the let-bound one
2:38 thearthur: is this a reserved word?
2:38 hoeck: no
2:39 but "this" is used in the proxy-macro
2:40 thearthur: i c
2:40 thanks so very much
2:40 hoeck: np
3:43 _deepfire: slyrus_, did anybody mention shadowing-import-from?
5:14 blarf: i want a function : (defn prolog []
5:14 (ref state {:rules {} :facts {}})
5:14 but it returns the ref when i eval it
5:15 i want it do that obv when i call (prolog) only