Re:Tests aren’t enough: Case study after adding type hints t...
by native_samples on Wednesday October 20, 2021 @06:10AM
(#28928882)
Static type systems don't imply fully dependent types. In Kotlin:
This program will type check just fine. The inferred return type will be Program because that's the nearest shared ancestor type of both possible return types. Good luck implementing the halts() function of course, but that's not the type system's problem.
[ Parent
| on HN ]
There are no comments on this comment yet.