Hacker Newsnew | past | comments | ask | show | jobs | submit | camelspotter's commentslogin

this example shows how "elegant" closure treats syntax errors, almost looks like a bad joke.

=> (+ 2 2 + 3)

"4function Cg(a){switch(arguments.length){case 0:return Cg.s();case 1:return Cg.g(arguments[0]);case 2:return Cg.h(arguments[0],arguments[1]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return Cg.j(arguments[0],arguments[1],new gc(c.slice(2),0,null))}}3"


That's a bug in the JS interpreter they're running, not anything related to Clojure. Also, that's not a syntax error


Not a syntax error. TryClojure is running on SCI which is a interpreter that uses a Babashka version for Clojurescript compiler, not Clojure JVM.

Babashka cli returns this, telling you clearly what the error is:

   user=> (+ 2 2 + 3)
   java.lang.ClassCastException: clojure.core$_PLUS_ cannot be cast to java.lang.Number [at <repl>:1:1]


three windows tools for my surface book (only first is device specific):

https://gitlab.com/WRFpcT/surface-tools

filcker-fix (ahk): fix top line flicker bug of SB1 and SB2.

cursor-keys (ahk): maps right shift + cursor to home, end, pgup, pgdown

event-filter (java): get event logs in useful text format


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

Search: