Skip to content
Prev 34049 / 63424 Next

S3 objects in S4 slots

Duncan Murdoch wrote:
But if the S3 class lives in someone else's package we will now have two 
versions with all the well-known headaches that causes.  In  practice, 
your advice ends up being a way of discouraging the use of S4 classes 
since there are so many legacy S3 classes.

(BTW somewhat in contrast to how I felt at one time, I'm not trying to 
dump on S3 classes, after all I'm to blame for much of what's in them.  
They are a more casual way to deal with some basic ideas and have a 
lower learning barrier.  But we didn't provide the material for as 
general or as trustworthy programming with them, so one hopes that users 
will feel able to move on as they get deeper into their projects.)

Nobody is forcing people to take advantage of the increased 
compatibility but let's try to sort out any problems, as Martin Kober 
did here, rather than discouraging the effort.

John