The beauty of functional programs stems from clear semantics, referential transparency, and the high-level of abstraction that permits programmers to focus on problem solving. In contrast, this beauty is rarely seen or appreciated in imperative code. In addition to solving a problem, imperative programmers focus on the bug-prone sequencing of assignment statements to obtain efficient code. Imperative programmers that learn functional programming, however, can derive an efficient imperative program from a functional program. This is achieved through a small series of meaning-preserving transformations. This article illustrates the transformations using a small example that yields code that is beautiful and efficient. © 2013 Springer-Verlag Berlin Heidelberg.
CITATION STYLE
Morazán, M. T. (2013). Beautiful imperative code a functional ace in the hole for imperative programmers. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 8106, pp. 273–284). Springer Verlag. https://doi.org/10.1007/978-3-642-40355-2_19
Mendeley helps you to discover research relevant for your work.