|
|
|
|
|
by falcolas
3224 days ago
|
|
Well, I'd actually rather write unit tests than shake out type trees too, so no, the two statements aren't equivalent. Why? Unit tests also check a lot more than the types being passed around, so they are a lot more useful in the long run. There are some type systems where this is perhaps not the case, but they certainly aren't the majority. The majority is "so do I go with a float or a double" or "I have to cast this int to an uint64 for this one function". |
|