3 ms·
From the Kotlin spec: http://jetbrains.github.io/kotlin-spec/#_type_inference http://jetbrains.github.io/kotlin-spec/#_type_inference "Type inference is conser
by chombier 10y ago
From the Kotlin spec: http://jetbrains.github.io/kotlin-spec/#_type_inference http://jetbrains.github.io/kotlin-spec/#_type_inference
"Type inference is conservative — it may fail to find suitable assignment of type-arguments to the type-parameters despite that one exist, and the function invocation could be successfully typechecked if the programmer explicitly provided suitable type-arguments."
My guess is that what the thesis presents is complete type inference in presence of subtyping that is decidable, efficient, and that yields types with all the nice properties one could hope for (principality, compactness, ...).
Which is hard.
- xyzzy123 10y agoExcellent, so now this will help us write programs better. Thanks. I upvoted you. Looking forward to the blog post.