Purely Functional Structured Programming

arXiv:1007.3023 First posted 2010-07-18 v2 Cited by 2
Cite this paper ×
BibTeX
@misc{obua2010purely,
  title = {Purely Functional Structured Programming},
  author = {Steven Obua},
  year = {2010},
  eprint = {1007.3023},
  archivePrefix = {arXiv},
  primaryClass = {cs.PL},
  url = {https://arxiv.org/abs/1007.3023}
}
APA
Obua, S. (2010). Purely Functional Structured Programming [Preprint]. arXiv. https://doi.org/10.48550/arXiv.1007.3023
GB/T 7714
OBUA S. Purely Functional Structured Programming[EB/OL]. (2010-07-18)[2026-11-29]. https://arxiv.org/abs/1007.3023.

Abstract

The idea of functional programming has played a big role in shaping today's landscape of mainstream programming languages. Another concept that dominates the current programming style is Dijkstra's structured programming. Both concepts have been successfully married, for example in the programming language Scala. This paper proposes how the same can be achieved for structured programming and PURELY functional programming via the notion of LINEAR SCOPE. One advantage of this proposal is that mainstream programmers can reap the benefits of purely functional programming like easily exploitable parallelism while using familiar structured programming syntax and without knowing concepts like monads. A second advantage is that professional purely functional programmers can often avoid hard to read functional code by using structured programming syntax that is often easier to parse mentally.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!