3 ms·
It absolutely matters, type systems don't exist in a pure universe, they are important because we use them to interact with human needs. A good type system pus
by dnautics 9y ago
It absolutely matters, type systems don't exist in a pure universe, they are important because we use them to interact with human needs. A good type system pushes out typing concerns to the outer boundary of of the system. For that you don't need static typing, you need strong typing. Refactoring in a statically typed system can be an incredibly tedious process with tons of boilerplate. At the other extreme if you allow duck typing and monkeypatching then you wind up with a problem where debugging becomes a problem. There's a middle ground that a lot of very good and productive programming languages occupy.
- coldtea 9y ago>A good type system pushes out typing concerns to the outer boundary of of the system. No, that would be a BAD type system. A good type system puts type concerns to the very core of the language and program, where they belong. A program is a proof, and types are elements (like axioms) in this proof.
- dnautics 9y agoBy 'type concerns' i mean coercing the real world into the type system. You want that to be at the edge. IMO, treating a program as a proof is somewhat impracticable as you see with very pure functional programming paradigms struggle with universal state monads.
- always_good 9y agoYou're not going to find many people who agree that static-typing makes refactoring harder. The classic issues with large coupled dynamically-typed systems is how difficult refactoring is without runtime errors. You also have to be more precise when you hand-wave about benefits of "strong typing" as you can read this very comments section to see how nobody agrees on what that means.