Hi Roelof, I'd recommend using an editor that supports rainbow brackets so you can easily see when your parens are matched.
Also, when you get your parens matched you'll find another error in your code, check out the docs for if <http://clojuredocs.org/clojure_core/clojure.core/if>to figure that one out. Cheers, James On Thursday, April 17, 2014 9:11:13 AM UTC+2, Roelof Wobben wrote: > > Hello, > > IM working at the Iloveponies github tutorial and Im stuck here, > > I have to check if x is a nil or false and then the output must be false,\ > Otherwise I have to be true. > > So I tried this : > > (defn boolean [x] > (if (and (nil? x) (false? x)) > ) > > But then I see a very long error message: > > xception in thread "main" java.lang.RuntimeException: EOF while reading, > starting at line 4, > compiling:(i_am_a_horse_in_the_land_of_booleans.clj:30:1) > at clojure.lang.Compiler.load(Compiler.java:7071) > at clojure.lang.RT.loadResourceScript(RT.java:370) > at clojure.lang.RT.loadResourceScript(RT.java:361) > at clojure.lang.RT.load(RT.java:440) > at clojure.lang.RT.load(RT.java:411) > at clojure.core$load$fn__5018.invoke(core.clj:5530) > at clojure.core$load.doInvoke(core.clj:5529) > at clojure.lang.RestFn.invoke(RestFn.java:408) > at clojure.core$load_one.invoke(core.clj:5336) > at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) > at clojure.core$load_lib.doInvoke(core.clj:5374) > at clojure.lang.RestFn.applyTo(RestFn.java:142) > at clojure.core$apply.invoke(core.clj:619) > at clojure.core$load_libs.doInvoke(core.clj:5413) > at clojure.lang.RestFn.applyTo(RestFn.java:137) > at clojure.core$apply.invoke(core.clj:621) > at clojure.core$use.doInvoke(core.clj:5507) > at clojure.lang.RestFn.invoke(RestFn.java:421) > at > iloveponies.tests.i_am_a_horse_in_the_land_of_booleans$eval6263$loading__4910__auto____6264.invoke(i_am_a_horse_in_the_land_of_booleans.clj:1) > at > iloveponies.tests.i_am_a_horse_in_the_land_of_booleans$eval6263.invoke(i_am_a_horse_in_the_land_of_booleans.clj:1) > at clojure.lang.Compiler.eval(Compiler.java:6619) > at clojure.lang.Compiler.eval(Compiler.java:6608) > at clojure.lang.Compiler.load(Compiler.java:7064) > at clojure.lang.RT.loadResourceScript(RT.java:370) > at clojure.lang.RT.loadResourceScript(RT.java:361) > at clojure.lang.RT.load(RT.java:440) > at clojure.lang.RT.load(RT.java:411) > at clojure.core$load$fn__5018.invoke(core.clj:5530) > at clojure.core$load.doInvoke(core.clj:5529) > at clojure.lang.RestFn.invoke(RestFn.java:408) > at clojure.core$load_one.invoke(core.clj:5336) > at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) > at clojure.core$load_lib.doInvoke(core.clj:5374) > at clojure.lang.RestFn.applyTo(RestFn.java:142) > at clojure.core$apply.invoke(core.clj:619) > at clojure.core$load_libs.doInvoke(core.clj:5413) > at clojure.lang.RestFn.applyTo(RestFn.java:137) > at clojure.core$apply.invoke(core.clj:621) > at clojure.core$use.doInvoke(core.clj:5507) > at clojure.lang.RestFn.invoke(RestFn.java:408) > at > i_am_a_horse_in_the_land_of_booleans_test$eval6257$loading__4910__auto____6258.invoke(i_am_a_horse_in_the_land_of_booleans_test.clj:1) > at > i_am_a_horse_in_the_land_of_booleans_test$eval6257.invoke(i_am_a_horse_in_the_land_of_booleans_test.clj:1) > at clojure.lang.Compiler.eval(Compiler.java:6619) > at clojure.lang.Compiler.eval(Compiler.java:6608) > at clojure.lang.Compiler.load(Compiler.java:7064) > at clojure.lang.RT.loadResourceScript(RT.java:370) > at clojure.lang.RT.loadResourceScript(RT.java:361) > at clojure.lang.RT.load(RT.java:440) > at clojure.lang.RT.load(RT.java:411) > at clojure.core$load$fn__5018.invoke(core.clj:5530) > at clojure.core$load.doInvoke(core.clj:5529) > at clojure.lang.RestFn.invoke(RestFn.java:408) > at clojure.core$load_one.invoke(core.clj:5336) > at clojure.core$load_lib$fn__4967.invoke(core.clj:5375) > at clojure.core$load_lib.doInvoke(core.clj:5374) > at clojure.lang.RestFn.applyTo(RestFn.java:142) > at clojure.core$apply.invoke(core.clj:619) > at clojure.core$load_libs.doInvoke(core.clj:5413) > at clojure.lang.RestFn.applyTo(RestFn.java:137) > at clojure.core$apply.invoke(core.clj:619) > at clojure.core$require.doInvoke(core.clj:5496) > at clojure.lang.RestFn.invoke(RestFn.java:421) > at midje.repl$load_facts$fn__6191.invoke(repl.clj:206) > at midje.repl$load_facts.doInvoke(repl.clj:192) > at clojure.lang.RestFn.invoke(RestFn.java:397) > at user$eval6253.invoke(form-init263954278555209649.clj:1) > at clojure.lang.Compiler.eval(Compiler.java:6619) > at clojure.lang.Compiler.eval(Compiler.java:6609) > at clojure.lang.Compiler.load(Compiler.java:7064) > at clojure.lang.Compiler.loadFile(Compiler.java:7020) > at clojure.main$load_script.invoke(main.clj:294) > at clojure.main$init_opt.invoke(main.clj:299) > at clojure.main$initialize.invoke(main.clj:327) > at clojure.main$null_opt.invoke(main.clj:362) > at clojure.main$main.doInvoke(main.clj:440) > at clojure.lang.RestFn.invoke(RestFn.java:421) > at clojure.lang.Var.invoke(Var.java:419) > at clojure.lang.AFn.applyToHelper(AFn.java:163) > at clojure.lang.Var.applyTo(Var.java:532) > at clojure.main.main(main.java:37) > Caused by: java.lang.RuntimeException: EOF while reading, starting at line > 4 > at clojure.lang.Util.runtimeException(Util.java:219) > at clojure.lang.LispReader.readDelimitedList(LispReader.java:1139) > at clojure.lang.LispReader$ListReader.invoke(LispReader.java:982) > at clojure.lang.LispReader.read(LispReader.java:185) > at clojure.lang.Compiler.load(Compiler.java:7060) > ... 79 more > Subprocess failed > > > What did I do wrong here ? > > Roelof > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.