Proceedings of the 8th ACM SIGPLAN Workshop on Generic Programming 2012
DOI: 10.1145/2364394.2364396
|View full text |Cite
|
Sign up to set email alerts
|

A pattern for almost homomorphic functions

Abstract: Modern type systems present the programmer with a trade-off between correctness and code complexity-more precise, or exact, types that allow only legal values prevent runtime errors while less precise types enable more reuse. Unfortunately, the software engineering benefits of reuse and avoiding duplicate code currently outweigh assurance gains of exact types. We factor out a pattern common in conversions that result from using exact types as a reusable function, extending existing generic programming techniqu… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
2
0

Year Published

2013
2013
2014
2014

Publication Types

Select...
2
1

Relationship

1
2

Authors

Journals

citations
Cited by 3 publications
(2 citation statements)
references
References 26 publications
0
2
0
Order By: Relevance
“…Ideally, the user would be able to take a hybrid approach of mechanically deriving the systematic cases, while manually overwriting the non-systematic cases. Investigating support for this sort of partial derivation is ongoing work (Frisby et al, 2012).…”
Section: Walking the Treementioning
confidence: 99%
“…Ideally, the user would be able to take a hybrid approach of mechanically deriving the systematic cases, while manually overwriting the non-systematic cases. Investigating support for this sort of partial derivation is ongoing work (Frisby et al, 2012).…”
Section: Walking the Treementioning
confidence: 99%
“…Yoko [10] is a Haskell module for writing functions that transform an input type to a similar output type that requires only the interesting cases be specified, similar to how the nanopass framework operates over languages. The module builds on generic programming techniques to provide the hcompos function.…”
Section: Related Workmentioning
confidence: 99%