Pattern types as constraints on generic type parameters
Abstract
A system and method for constraining generic types is disclosed. In brief, the subject invention provides a pattern type for defining a set of one or more parameter constraints. Rather than being confined to a predetermined set of hard-coded constraints in an execution engine, a pattern type can be specified as an extensible constraint mechanism for generic type parameters. According to one aspect of the invention, the pattern type can manifest itself as a class including one or more properties and/or features. The shape of the pattern type can then be compared or matched to instantiated type parameters to determine constraint satisfaction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A generic type parameter constraint system embodied on a computer readable storage medium comprising: a processor; a memory communicatively coupled to the processor, the memory having stored therein computer-executable instructions to implement the system, including: a generic type parameter component that receives at least one generic type declaration that instantiates a generic type, wherein the at least one generic type declaration includes: a type identifier that uniquely identifies the generic type; a type parameter that is a placeholder for one or more instantiation types that are assign
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- B. Demoen, M. Garcia De La Banda, and P.J. Stuckey. Type Constraint Solving for Parametric and Ad-hoc Polymorphism. In Proc. of the 22nd Australian Computer Science Conference, pp. 217-228, 1999.
- Ping Gao and Robert Esser, Polymorphic CSP Type Checking, Year of Publication 2001, IEEE Computer Society, pp. 156-162.
- R. Rodosek, M.G. Wallace, and T. Hajian. A New Approach to Integrate Mixed Integer Programming. CP96 Workshop on Constraint Programming Applications: An Inventory and Taxonomy, 1996. 10 pages.
- Rowan Davies and Frank Pfenning, Intersection Types and Computational Effects, Year of Publication 2000, ACM, pp. 198-208.
- V. Choppella and C.T. Haynes. Diagnosis of III-typed Programs. Technical Report 426, Indiana University, 1995. 10 pages.