2013
DOI: 10.1016/j.scico.2012.07.014
|View full text |Cite
|
Sign up to set email alerts
|

Refactoring pattern matching

Abstract: Defining functions by pattern matching over the arguments is advantageous for understanding and reasoning, but it tends to expose the implementation of a datatype. Significant effort has been invested in tackling this loss of modularity; however, decoupling patterns from concrete representations while maintaining soundness of reasoning has been a challenge. Inspired by the development of invertible programming, we propose an approach to program refactoring based on a right-invertible language rinv-every functi… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
16
0

Year Published

2015
2015
2024
2024

Publication Types

Select...
4
2

Relationship

2
4

Authors

Journals

citations
Cited by 16 publications
(16 citation statements)
references
References 48 publications
(71 reference statements)
0
16
0
Order By: Relevance
“…However, datatype inference has been addressed in other contexts, such as (theoretical approaches): XML Schema Definition (XSD) [6,7,14], programming languages [4,5,11,16,31], and OWL [13,19,26,28]. Moreover, we have revised some tools available on the Web for XSD inference 2.…”
Section: Related Workmentioning
confidence: 99%
See 2 more Smart Citations
“…However, datatype inference has been addressed in other contexts, such as (theoretical approaches): XML Schema Definition (XSD) [6,7,14], programming languages [4,5,11,16,31], and OWL [13,19,26,28]. Moreover, we have revised some tools available on the Web for XSD inference 2.…”
Section: Related Workmentioning
confidence: 99%
“…Other works [16,31] also use axioms and pattern matching over the constructors of the datatype during the inference process. In [4,5], operations and a syntax associated with datatypes are analyzed to infer complex datatypes.…”
Section: Function-based Approachesmentioning
confidence: 99%
See 1 more Smart Citation
“…The definition of the composition combinator • is standard [6,7,9,11,13,14,17,21]. It is known that the combinator • preserves the acceptability and consistency laws.…”
Section: Appendix a Proofsmentioning
confidence: 99%
“…Very often, such languages are defined as a collection of combinators which can be read in two ways [6,7,9,11,13,14,17,21]: forward and backward. A disadvantage of the combinator-based approach is that transformations have to be encoded in a somewhat inconvenient programming style.…”
Section: Introductionmentioning
confidence: 99%