Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wouldnt call that getting clever, its just a string of what you did

  > (type (+ 1 2 '(1 2)))
    #object[String]


The problem is how you get there.

1 and 2 are integers. '(1 2) is a list. None of them are strings, but + helpfully converts them to strings because ClojureScript is leaking some of JavaScript's wat behavior.




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

Search: