Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Simplicitly: Foundations and Applications of Implicit Function Types
 
conference paper not in proceedings

Simplicitly: Foundations and Applications of Implicit Function Types

Odersky, Martin  
•
Blanvillain, Olivier  
•
Liu, Fengyun  
Show more
2017
45th ACM SIGPLAN Symposium on Principles of Programming Languages

Understanding a program entails understanding its context; dependencies, configurations and even implementations are all forms of contexts. Modern programming languages and theorem provers offer an array of constructs to define contexts, implicitly. Scala offers implicit parameters which are used pervasively, but which cannot be abstracted over. This paper describes a generalization of implicit parameters to implicit function types, a powerful way to abstract over the context in which some piece of code is run. We provide a formalization based on bidirectional type-checking that closely follows the semantics implemented by the Scala compiler. To demonstrate their range of abstraction capabilities, we present several applications that make use of implicit function types. We show how to encode the builder pattern, tagless interpreters, reader and free monads and we assess the performance of the monadic structures presented.

  • Files
  • Details
  • Metrics
Loading...
Thumbnail Image
Name

simplicitly_1.pdf

Type

Preprint

Version

Submitted version (Preprint)

Access type

openaccess

Size

687.54 KB

Format

Adobe PDF

Checksum (MD5)

4267e53924d2014e878df6af9507cecc

Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés