Content area

Abstract

Haskell today provides good support not only for a functional programming style, but also for an imperative one. Elements of imperative programming are needed in applications such as web servers, or to provide efficient implementations of well-known algorithms, such as many graph algorithms. However, one element of imperative programming, the global variable, is surprisingly hard to emulate in Haskell. We discuss several existing methods, none of which is really satisfactory, and finally propose a new approach based on implicit parameters. This approach is simple, safe, and efficient, although it does reveal weaknesses in Haskell's present type system. [PUBLICATION ABSTRACT]

Details

Title
Global variables in Haskell
Publication title
Volume
14
Issue
5
Pages
489-502
Number of pages
14
Publication year
2004
Publication date
Sep 2004
Publisher
Cambridge University Press
Place of publication
Cambridge
Country of publication
United Kingdom
ISSN
09567968
e-ISSN
14697653
Source type
Scholarly Journal
Language of publication
English
Document type
Feature
ProQuest document ID
213500812
Document URL
https://www.proquest.com/scholarly-journals/global-variables-haskell/docview/213500812/se-2?accountid=208611
Copyright
2004 Cambridge University Press
Last updated
2023-11-27
Database
ProQuest One Academic