|
|
|
|
|
by MattPalmer1086
1603 days ago
|
|
I disagree strongly that types have nothing to do with correctness. Primitive types will only give you a limited utility, more complex type systems give you a lot more. Obviously, bugs which exist at a highér level than whatever automated correctness system you employ can't be handled by it and need something else. I'm upvoting you, because while I don't agree with you, downvotes shouldn't be used to express disagreement. |
|
Example: your function is doing some complex calculation, while the inputs types can be strongly checked and output types can be checked, but the logic has to be tested by writing unit tests right?
The original comment which i replied to suggests that we can get rid of TDD only if we employ using type systems, which i feel is over exaggeration of the benefits of the types
ps: Thanks for the upvote :)