3 ms·
> Does your type-system then make it easy to change your types so they reflect your new program? Yes. The type system in fact makes it easier to make this kind
by lmm 9y ago
> Does your type-system then make it easy to change your types so they reflect your new program?
Yes. The type system in fact makes it easier to make this kind of change, because when I change one of my assumptions (e.g. I say "the input list to this function must always be non-empty") the compiler tells me exactly where I need to make a corresponding change.
> Now assumably when you are developing a new program it is changing all the time. If you fix its types early doesn't it actually make it more work to create your program?
Fixing the types early would indeed be a disaster, but why would you ever do that? Types are something that evolve and change as the program does, just like e.g. variable names.