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
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
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