Type-dependent parameter inference
Gordon V. Cormack, Andrew K. Wright · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1990
An algorithm is presented to infer the type and operation parameters of polymorphic functions. Operation parameters are named and typed at the function definition, but are selected from the set of overloaded definitions available wherever the function is used. These parameters are always implicit, implying that the complexity of using a function does not increase with the generality of its type.
Cited by 17 works. doi:10.1145/93542.93560
Authors
References
- A Machine-Oriented Logic Based on the Resolution Principle
- Compilers: Principles, Techniques, and Tools
- Object-Oriented Software Construction
- A theory of type polymorphism in programming
- On understanding types, data abstraction, and polymorphism
- Towards a theory of type structure
- Revised Report on the Algorithmic Language Algol 60
- How to make ad-hoc polymorphism less ad hoc
- Modules for standard ML
- Principles of OBJ2