Mutable objects in R

作者:Wickham Hadley*
来源:Computational Statistics, 2011, 26(3): 405-418.
DOI:10.1007/s00180-011-0235-7

摘要

Programming paradigms help us understand the differences and similarities between fundamental choices in language design. This paper looks at R in the context of three paradigms of object oriented programming: mutable versus immutable objects, generic-function versus message-passing methods, and class-based versus prototype-based inheritance. The paper also describes a new OO package for R, mutatr, which provides mutable objects with message-passing methods and prototype-based inheritance. The mutatr package is available on CRAN.

  • 出版日期2011-9

全文