Re: Anonymous function syntax in R1053

2008-10-07 Thread Matthew D. Swank
On Oct 7, 12:32 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > On Oct 7, 2008, at 1:21 AM, Matthew D. Swank wrote: ... > Here's a similar question and answer from the list archive that   > includes a cool tip for seeing the effect of reader macros: > > > > > On Fri, Mar 14, 2008 at 11:58

Re: Anonymous function syntax in R1053

2008-10-06 Thread Stephen C. Gilardi
On Oct 7, 2008, at 1:21 AM, Matthew D. Swank wrote: > > Typing #(nil) at a repl gives me: > > java.lang.NullPointerException (NO_SOURCE_FILE:1) > [Thrown class clojure.lang.Compiler$CompilerException] > [...] > However, (fn [] nil) is fine. > > Shouldn't they be equivalent? > > Thanks, > Matt Her

Anonymous function syntax in R1053

2008-10-06 Thread Matthew D. Swank
Typing #(nil) at a repl gives me: java.lang.NullPointerException (NO_SOURCE_FILE:1) [Thrown class clojure.lang.Compiler$CompilerException] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [CAUSE] Throw cause of this exception Backtrace: 0: clojure.lang.Compiler.analyzeSeq(Compiler.ja