Extended Report: The Implicit Calculus

Computer Science – Programming Languages

Scientific paper

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

13 pages, extended report of paper accepted at PLDI 2012

Scientific paper

Generic programming (GP) is an increasingly important trend in programming languages. Well-known GP mechanisms, such as type classes and the C++0x concepts proposal, usually combine two features: 1) a special type of interfaces; and 2) implicit instantiation of implementations of those interfaces. Scala implicits are a GP language mechanism, inspired by type classes, that break with the tradition of coupling implicit instantiation with a special type of interface. Instead, implicits provide only implicit instantiation, which is generalized to work for any types. This turns out to be quite powerful and useful to address many limitations that show up in other GP mechanisms. This paper synthesizes the key ideas of implicits formally in a minimal and general core calculus called the implicit calculus, and it shows how to build source languages supporting implicit instantiation on top of it. A novelty of the calculus is its support for partial resolution and higher-order rules (a feature that has been proposed before, but was never formalized or implemented). Ultimately, the implicit calculus provides a formal model of implicits, which can be used by language designers to study and inform implementations of similar mechanisms in their own languages.

No associations

LandOfFree

Say what you really think

Search LandOfFree.com for scientists and scientific papers. Rate them and share your experience with other people.

Rating

Extended Report: The Implicit Calculus does not yet have a rating. At this time, there are no reviews or comments for this scientific paper.

If you have personal experience with Extended Report: The Implicit Calculus, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Extended Report: The Implicit Calculus will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFWR-SCP-O-496493

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.