Follow

It's funny how my opinion on strong vs. weak typing changes almost every year. On the one hand, I've yet to find a statically typed language where I am even *close* as productive as I am in . On the other hand, I keep making stupid silly mistakes that would have been easily caught with a static type system.

Where's that holy grail of hyperproductivity AND safety?

@ayo strong typing with more tools available for your current task?

@jeffcliff That works for some tasks, yes. It's how I can be productive with - it has great tools for creating web UIs despite not being a very powerful language.

But it fails badly for, e.g. generic data processing. I've yet to see a statically typed language that could fetch data from SQL and do complex manipulations on it without requiring tons of boilerplate to describe all the intermediate result types. There are many projects that try to solve this, but nothing comes close to Perl.

@ayo Would a dynamic and functional #lisp like #clojure help here?

It has a dynamic type system but it is functional in nature defaulting to data immutability.

This should help productivity while reducing error in runtime.

@demonshreder I've not used such a language for any serious projects yet, though I'm looking into using Elixir more.

It will likely help a bit, but I already have a pretty functional style of organizing my code and don't get bitten by mutability problems very often. It's usually typos in functions or "field" names or passing the wrong data to the wrong function.

@ayo I see. Yes static typing is what would solve your problem.

@maridonkers @ayo

Yes I am reading spec library. It didn't strike me to suggest as I am just starting off with #clojure.

Thanks for pointing it out.

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !