User loginNavigation |
archivesA Call to ArmsA Call to Arms - Jim Gray, ACM Queue
Big-time language lock-in. TypeCase: A Design Pattern for Type-Indexed Functions
Bruno C. d. S. Oliveira and Jeremy Gibbons. TypeCase: A Design Pattern for Type-Indexed Functions. Submitted for publication, June 2005.
A type-indexed function is a function that is defined for each member of some family of types. Haskell's type class mechanism provides open type-indexed functions, in which the indexing family can be extended at any time by defining a new type class instance. The purpose of this paper is to present TypeCase: a design pattern that allows the definition of closed type-indexed functions. It is inspired by Cheney and Hinze's work on lightweight approaches to generic programming. We generalise their techniques as a design pattern. Furthermore, we show that type-indexed functions with type-indexed types, and consequently generic functions with generic types, can also be encoded in a lightweight manner, thereby overcoming one of the main limitations of the lightweight approaches. A new paper in a field we follow quite closely (i.e., generic programming). The paper starts with a useful summary of important previous results, which is worth reading even if you don't plan on studying the whole paper. By Ehud Lamm at 2005-06-20 19:37 | Functional | Software Engineering | Type Theory | 1 comment | other blogs | 10518 reads
Why recursing is better than loopingI just posted a new article for imperative-loving people about why recursive programming is better than imperative programming. Here's the article: Mastering Recursive Programming I thought you all might be interested, and I am interested in any comments, criticisms, additions, subtractions you all have. |
Browse archivesActive forum topics |
Recent comments
22 weeks 5 hours ago
22 weeks 9 hours ago
22 weeks 9 hours ago
44 weeks 1 day ago
48 weeks 3 days ago
50 weeks 17 hours ago
50 weeks 17 hours ago
1 year 4 days ago
1 year 5 weeks ago
1 year 5 weeks ago