ACM Home Page
Please provide us with feedback. Feedback
Implicit parameters: dynamic scoping with static types
Full text PdfPdf (1.12 MB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 27th ACM SIGPLAN-SIGACT symposium on Principles of programming languages table of contents
Boston, MA, USA
Pages: 108 - 118  
Year of Publication: 2000
ISBN:1-58113-125-9
Authors
Jeffrey R. Lewis  Oregon Graduate Institute of Science & Technology
John Launchbury  Oregon Graduate Institute of Science & Technology
Erik Meijer  University of Utrecht
Mark B. Shields  Oregon Graduate Institute of Science & Technology
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 6,   Downloads (12 Months): 48,   Citation Count: 32
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/325694.325708
What is a DOI?

ABSTRACT

This paper introduces a language feature, called implicit parameters, that provides dynamically scoped variables within a statically-typed Hindley-Milner framework. Implicit parameters are lexically distinct from regular identifiers, and are bound by a special with construct whose scope is dynamic, rather than static as with let. Implicit parameters are treated by the type system as parameters that are not explicitly declared, but are inferred from their use. We present implicit parameters within a small call-by-name &lgr;-calculus. We give a type system, a type inference algorithm, and several semantics. We also explore implicit parameters in the wider settings of call-by-need languages with overloading, and call-by-value languages with effects. As a witness to the former, we have implemented implicit parameters as an extension of Haskell within the Hugs interpreter, which we use to present several motivating examples.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
BENTON, N. A mixed linear and non-linear logic: Proofs, terms and models. Tech. Rep. 352, University of Cambridge Computer Laboratory, Oct. 1994.
 
2
GARRIGUE, J. Dynamic binding and lexical binding in a transformation calculus. In Proc. of the Fuji International Workshop on Functional and Logic Programming. (1995).
3
 
4
HANSON, C. MIT Scheme Reference. Cambridge, MA: MIT Press, Apr. 96.
 
5
 
6
JONES, M. P. Exploring the design space for typebased implicit parameterization. Tech. rep., Oregon Graduate Institute, July 1999.
 
7
JONES, M. P. Type classes with functional dependencies, Oct. 1999. (Submitted for publication).
 
8
JONES, M. P., AND PETERSON, J. C. Hugs 98 user manual, http://~--~.haskell, org/hugs/, May 1999.
9
 
10
 
11
MEIJER, E., AND CLAESSEN, K. The design and implementation of Mondrian. In Proceedings o/the HaskeU Workshop (1997).
 
12
13
 
14
PEYTON JONES, S., AND HUGHES, J. Haskell 98: A non-strict, purely functional language. http ://haskell. cs. yale. edu/onlinereport/, Jan. 1999.
15
16

CITED BY  32

Collaborative Colleagues:
Jeffrey R. Lewis: colleagues
John Launchbury: colleagues
Erik Meijer: colleagues
Mark B. Shields: colleagues