Fork me on GitHub
#planck
<
2018-03-17
>
spinningarrow15:03:14

I wrote a little article about using Planck for writing shell scripts: https://github.com/spinningarrow/blog.sahil.me/blob/gh-pages/_posts/2018-03-24-shell-scripting-in-clojurescript-with-planck.md If anyone has the time to read it, I'd love to know what you think!

mfikes15:03:54

@spinningarrow Cool. I'll read it in detail at some point. One thing I noticed: You should probably use (js/JSON.parse "[1, 2, 3, 4]"), or IMHO, (.parse js/JSON "[1, 2, 3, 4]") instead

mfikes15:03:38

(JSON.parse "[1, 2, 3, 4]") fails if you first (def JSON 3) The 2nd fails in this situation (let [JSON 3] (js/JSON.parse "[1, 2, 3, 4]")) (let [JSON 3] (.parse js/JSON "[1, 2, 3, 4]")) produces a nice warning