• Home
  • Search
  • Object-Oriented Programming, Functional Programming and R
  • Cite Icon39
  • https://doi.org/10.1214/13-sts452Copy DOI Icon

Object-Oriented Programming, Functional Programming and R

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

This paper reviews some programming techniques in R that have proved useful, particularly for substantial projects. These include several versions of object-oriented programming, used in a large number of R packages. The review tries to clarify the origins and ideas behind the various versions, each of which is valuable in the appropriate context. R has also been strongly influenced by the ideas of functional programming and, in particular, by the desire to combine functional with object oriented programming. To clarify how this particular mix of ideas has turned out in the current R language and supporting software, the paper will first review the basic ideas behind object-oriented and functional programming, and then examine the evolution of R with these ideas providing context. Functional programming supports well-defined, defensible software giving reproducible results. Object-oriented programming is the mechanism par excellence for managing complexity while keeping things simple for the user. The two paradigms have been valuable in supporting major software for fitting models to data and numerous other statistical applications. The paradigms have been adopted, and adapted, distinctively in R. Functional programming motivates much of R but R does not enforce the paradigm. Object-oriented programming from a functional perspective differs from that used in non-functional languages, a distinction that needs to be emphasized to avoid confusion. R initially replicated the S language from Bell Labs, which in turn was strongly influenced by earlier program libraries. At each stage, new ideas have been added, but the previous software continues to show its influence in the design as well. Outlining the evolution will further clarify why we currently have this somewhat unusual combination of ideas.

Similar Papers
  • Research Article
  • Citations14

Should ML be Object-Oriented?

  • Jul 01, 2002
  • Formal Aspects of Computing
  • David Macqueen
  • Supplementary Content

Co-Contextual Type Systems: Contextless Deductive Reasoning for Correct Incremental Type Checking

  • Mar 02, 2020
  • TUbilio (Technical University of Darmstadt)
  • Edlira Kuci
  • Research Article
  • Citations1

Functional Programming at Work in Object- Oriented Programming.

  • Jan 01, 2009
  • The Journal of Object Technology
  • Philippe Narbel
  • Conference Article
  • Citations6

Comparative analysis of functional and object-oriented programming

  • May 01, 2016
  • Dino Alic +2
  • Research Article
  • Citations3

A Comparative Study of Object-Oriented, Procedural, and Functional Programming Paradigms in Microservice Architecture

  • Sep 24, 2025
  • VFAST Transactions on Software Engineering
  • Mustafa Ahmed Khan +5
  • Single Book
  • Citations395

Modern Compiler Implementation in C

  • Dec 13, 1997
  • Andrew W Appel +1
  • Book Chapter
  • Citations3

Typed object-oriented functional programming with late binding

  • Jan 01, 1996
  • Zhenyu Qian +1
  • Research Article
  • Citations3

On complementary principles of object-oriented constraint programming

  • Sep 01, 2010
  • Programming and Computer Software
  • V A Semenov +4
  • Book Chapter
  • Citations5

Language Support for Generic Programming in Object-Oriented Languages: Peculiarities, Drawbacks, Ways of Improvement

  • Jan 01, 2016
  • Julia Belyakova
  • PDF
  • Research Article

Дизайн средств обобщённого программирования в объектно-ориентированных языках: ключевые решения

  • Jan 01, 2016
  • Proceedings of the Institute for System Programming of the RAS
  • Julia Belyakova
  • Conference Article

Implementation of an object-oriented functional language on the multithreaded architecture

  • Dec 11, 1997
  • Chang Juno +4
  • Conference Article
  • Citations1

Functional programming, object-oriented programming and algebras!

  • Aug 26, 2014
  • Bruno C.D.S Oliveira
  • Conference Article
  • Citations7

OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Models

  • Jan 01, 2024
  • Shuai Wang +5
  • Conference Article
  • Citations1

Developing a monadic type checker for an object-oriented language: an experience report

  • Oct 20, 2019
  • Elias Castegren +1
  • Conference Article
  • Citations6

A knowledge-based approach to object-oriented legacy code reuse

  • Dec 23, 2002
  • L.H Etzkorn +6
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.