News for hackers. Stuff that matters.
Re:Is Typed Clojure worth the trouble? by the_af on Monday June 22, 2015 @02:32PM (#9760268)
> Static typing does not protect you from bugs.

But it does. It doesn't protect you from all bugs, but nobody claimed it did.

Re:Is Typed Clojure worth the trouble? by Skinney on Monday June 22, 2015 @03:18PM (#9760582)
True, should have specified what I meant. The thing is, static typing doesn't necessarily protect you from more bugs than a dynamic language. For instance, Clojure is less prone to NPEs because you don't call methods on objects, and because a lot of your program manipulates datastructures, and nil is treated as an empty datastructure. Of course, a language like Rust, which doesn't have null, does protect against NPEs. It's all relative.
Re:Is Typed Clojure worth the trouble? by Skinney on Tuesday June 23, 2015 @02:00AM (#9762862)
Reading this again make me realize that I'm wrong. Static typing will safeguard you against certain types of bugs that a dynamic language don't. The point I was trying to make was that a static language doesn't necessarily protect you against a certain type of bug, which you may rarely experience in a dynamic language.