Abstract
Apurely functional function has no side effects. A purely functional programming language would not allow functions with side effects to be defined. But wait, there’s more! Because functions and algorithms cannot have side effects, variables are immutable and persistent. This persistence is not the same as disk storage or serialization; it means that previous versions of a given value can be retained by the language.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2006 Joshua B. Smith
About this chapter
Cite this chapter
(2006). Digression: OCaml Is Not Pure. In: Practical OCaml. Apress. https://doi.org/10.1007/978-1-4302-0244-8_19
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0244-8_19
Publisher Name: Apress
Print ISBN: 978-1-59059-620-3
Online ISBN: 978-1-4302-0244-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books