Type inference for object-oriented languages
Abstract
Systems and methods facilitate type inference in a computer-programming environment. Type inference can be applied to generic method or function invocation in object-oriented languages to determine a type argument list left implicit by a programmer. One or more type arguments can be identified as a parameter type to which all other types in a set of associated parameter types can be converted.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A type inference system for selecting a specific method invocation when a generic method is specified in program code, the system comprising: a processor; and memory storing computer executable instructions which when executed by the processor perform the following: receive program code that invokes a generic method without specifying the type of each of a plurality of input parameters of the generic method; analyze each of the plurality of input parameters to infer a candidate set of types to which the input parameters could be resolved; determine that a first input parameter's type could
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (5)
- ‘A Lambda Calculus of Objects and Method Specialization’: Mitchell, 1993, IEEE, 1043-6871, pp. 26-38.
- 'A Lambda Calculus of Objects and Method Specialization': Mitchell, 1993, IEEE, 1043-6871, pp. 26-38.
- Agesen. "Concrete Type Inference: Delivering Object-Oriented Applications", Sun Microsystems Laboratories, http://research.sun.com/techrep/1996/smli-tr-96-52.pdf, Jan. 1996, Mountain View, CA, USA, last accessed Feb. 2, 2007, 187 pages.
- Agesen. "Concrete Type Inference: Delivering Object-Oriented Applications", Sun Microsystems Laboratories, http://research.sun.com/techrep/1996/smli—tr-96-52.pdf, Jan. 1996, Mountain View, CA, USA, last accessed Feb. 2, 2007, 187 pages.
- Milner, ‘A theory of type polymorphism in programming’:, 1978, journal of computer and system sciences 17, 348-375.