Find Related products on Amazon

Shop on Amazon

The State of Coherence in the Land of Type Classes

Published on: 2025-06-19 08:13:32

On the State of Coherence in the Land of Type Classes Dimi Racordon , Eugene Flesselle , and Cao Nguyen Pham The Art, Science, and Engineering of Programming, 2025, Vol. 10, Issue 1, Article 15 Submission date: 2024-10-01 Publication date: 2025-02-15 DOI: https://doi.org/10.22152/programming-journal.org/2025/10/15 Full text: PDF Abstract Type classes are a popular tool for implementing generic algorithms and data structures without loss of efficiency, bridging the gap between parametric and ad-hoc polymorphism. Since their initial development in Haskell, they now feature prominently in numerous other industry-ready programming languages, notably including Swift, Rust, and Scala. The success of type classes hinges in large part on the compilers’ ability to infer arguments to implicit parameters by means of a type-directed resolution. This technique, sometimes dubbed implicit programming, lets users elide information that the language implementation can deduce from the context, s ... Read full article.