Type inference of generic type parameters in overloaded functions using type intervals and inference directions
Abstract
The disclosed embodiments provide a system that facilitates the development and execution of a software program. During operation, the system obtains a type interval for a generic type parameter of an implementation of an overloaded function. Next, the system selects an inference direction for the generic type parameter based on a variance of the generic type parameter, wherein the inference direction is an upward inference direction or a downward inference direction. Finally, the system uses the type interval and the inference direction to perform type inference on the generic type parameter.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for facilitating the development and execution of a software program, comprising: obtaining a type interval for a generic type parameter of an implementation of an overloaded function; selecting an inference direction for the generic type parameter based on a variance of the generic type parameter, wherein the inference direction is an upward inference direction or a downward inference direction; and using the type interval and the inference direction to perform type inference on the generic type parameter, wherein doing so comprises: propagating one or more limit
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,386,597 B2 | Role extensions for programming languages | 2025 | 0 |
References Cited — Backward Prior Art (9)
Non-Patent Literature (1)
- Kuijper et al., Generic Programming of Reusable, High Performance Container Types using Automatic Type Hierarchy Inference and Bidirectional Antichain Typing, Feb. 16, 2011.