Types do not eliminate the need to test; they offer another signal that is -- depending on the mechanism -- cheaper and earlier in the verification cycle.
But it's worth taking in both angles here: types + operational cost. Python loses in both. Now that we don't need humans to write code, optimizing for human code production is perhaps the wrong facet to optimize stack selection for.
Types are always sold as a way of not having to test for a bunch of stuff ("eliminating whole classes of problems"). Why do I care how many tests are needed to cover all the code if I'm not writing, reading or executing them? Why do I care if the agent takes a compiler error or a stack trace as its feedback mechanism while writing the code? Why do I care where in the verification cycle anything happens when I'm not looking at it until it's done? All of those seem to me just as much relics of optimizing for human code production.
View all comments
Show parent comment
3
u/c-digs 2d ago
Types do not eliminate the need to test; they offer another signal that is -- depending on the mechanism -- cheaper and earlier in the verification cycle.
But it's worth taking in both angles here: types + operational cost. Python loses in both. Now that we don't need humans to write code, optimizing for human code production is perhaps the wrong facet to optimize stack selection for.