News for hackers. Stuff that matters.
Re:Cold Showers by danieltanfh95 on Saturday June 18, 2022 @10:24PM (#31795576)
As a clojure programmer, I'd say the same of Haskell. Oop is less expressive than FP, and static typing is less expressive than dynamic typing. These are usually just tradeoffs people choose for their problem domain
Re:Cold Showers by ebingdom on Saturday June 18, 2022 @10:50PM (#31795695)
> static typing is less expressive than dynamic typing

Here's something I can express with static typing that I can't express with dynamic typing: "this function returns a function which returns an integer for every input". There's no test you could write to verify this property. So I'm inclined to say that static typing is more expressive, since it gives me a way to express and verify properties like this.

Re:Cold Showers by blain_the_train on Sunday June 19, 2022 @12:58AM (#31796289)
clojure spec will do this in the way you're asking.
Re:Cold Showers by ncmncm on Saturday June 18, 2022 @11:09PM (#31795790)
Not even wrong.

Without compile-time types, you are not equipped to express serious compile-time work.