Publication | Open Access
A theory of overloading
74
Citations
30
References
2005
Year
Mathematical ProgrammingComputational Complexity TheoryEngineeringType TheorySoftware EngineeringComputational ComplexitySoftware AnalysisFormal VerificationGeneric ProgrammingDependently Typed ProgrammingOverloaded IdentifiersCombinatorial OptimizationMechanism DesignType ClassesType System FrameworkComputer ScienceType SystemComplexity TheoryAutomated ReasoningProgram AnalysisFormal Methods
We present a novel approach to allow for overloading of identifiers in the spirit of type classes. Our approach relies on a combination of the HM(X) type system framework with Constraint Handling Rules (CHRs). CHRs are a declarative language for writing incremental constraint solvers, that provide our scheme with a form of programmable type language. CHRs allow us to precisely describe the relationships among overloaded identifiers. Under some sufficient conditions on the CHRs we achieve decidable type inference and the semantic meaning of programs is unambiguous. Our approach provides a common formal basis for many type class extensions such as multiparameter type classes and functional dependencies.
| Year | Citations | |
|---|---|---|
Page 1
Page 1