Hi, I'm looking for some guidance on whether to use
   S4 or Reference Classes for an analysis application
   I'm developing.
   I'm a C++/Python developer, and like to 'think' in OOD.
   I started my app with S4, thinking that was the best
   set of OO features in R. However, it appears that one
   needs Reference Classes to allow object methods to assign
   values (other than the .Object in the initialize method)
   to slots of the object.
   This is typically what I prefer: creating an object, then
   operating on the object (reference) calling object methods
   to access/modify slots.
   So I'm wondering what (dis)advantages there are in
   developing with S4 vs Reference Classes.
   Things of interest:
   Performance (i.e. memory management)
   Integration compatibility with R packages
   ??? other issues
   Thanks!
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to