Beautiful imperative code a functional ace in the hole for imperative programmers

0Citations
Citations of this article
1Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

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

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free