Skip to content

Adding support for S7 to base R

2 messages · Ezra Tucker, Daniele Medri

#
I don't know if this is the right forum, but I'd like to ask an open-ended
question about the goals of the S7 OOP system, which is, where do we see
the ultimate future of object-oriented programming in R being? Do we see S7
eventually complementing S3 and S4 in "base" (in quotes because S4 is
provided by the methods package), or do we see (or even wish?) for S7 to
supplant both S3 and S4 eventually within base R?

My own personal experience, I usually use S4 - why, because it's there, and
also, some of my favorite packages (sp and Matrix) use it, and I like my
code to look like the source code for the language. To that end, when I'm
training up engineers or data scientists to use OOP in R, I have them look
at source code-- but then also have to be choosy about source code for what
lest they become confused by the differences between S3 and S4 (not to
mention R6, RC, and whatever else might be out there).

R is the only language I know of that has multiple different object
oriented systems, and that makes it a big barrier to entry for people
learning the language, and I think the language as a whole would benefit
greatly from having a single standard.

-Ezra

On Sat, Feb 18, 2023 at 12:38?PM Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:

  
  
#
In data luned? 13 marzo 2023 16:53:56 CET, Ezra Tucker ha scritto:
R is more than just a "language," it is well known. It is an environment, an ecosystem of 
packages, many standards and much code written for decades in different programming 
languages that can survive and run under a common roof.

IMHO the question should not be about which versions/systems of R oo to use, but how 
they integrate with each other, what is the cost of an overall upgrade, whether all this is 
really necessary. More than pragmatism, a moral suasion.

hth