News for hackers. Stuff that matters.
Re:Clojure Newbie Guide (2015) by Jach on Thursday June 22, 2017 @09:15AM (#14611979)
I guess for #2 you didn't get a chance to try out Schema? (Now at https://github.com/plumatic/schema) Or if so, I wonder what you found lacking in it? http://www.lispcast.com/clojure.spec-vs-schema does a good job highlighting some differences..
Re:Clojure Newbie Guide (2015) by fbonetti on Thursday June 22, 2017 @09:36AM (#14612103)
Runtime type checking is useless. If a given function can't accept the data I plan to send into it, I want the compiler to tell me immediately.
Re:Clojure Newbie Guide (2015) by Jach on Thursday June 22, 2017 @09:55AM (#14612235)
That way lies SOAP, and it's not the compiler that tells the client it can't call an API some way but a broader build tool. And you still need some runtime verification somewhere on the server anyway since without it nothing stops any arbitrary stream of bytes.

My own related exaggeration is that type declarations without performance gains are useless. Get them out of my dynamic langs unless you can deliver the performance goods. (Like Common Lisp can. It can also tell you you're stupid locally trying to make an invalid call, at compile time, since COMPILE is built-in.)

Re:Clojure Newbie Guide (2015) by tmountain on Thursday June 22, 2017 @09:46AM (#14612170)
I think useless might be a stretch. While I certainly prefer compile time checks as well, spec is a huge step forward for folks that are committed to Clojure. If there was no merit to runtime checking, Haskell wouldn't have QuickCheck and would exclusively rely on compile time checking.