[Rd] standardization of slot access

From: Sebastian P. Luque <spluque_at_gmail.com>
Date: Tue 26 Sep 2006 - 20:48:17 GMT


Hi,

I'm usually confused about when to use 'slot' or '@'. I've frequently read that it's always preferable to use accessor functions, so I would think the '@' operator should be avoided. However, ?slot contains the following advise:

"Generally, the only reason to use the functional form rather than the simpler operator is _because_ the slot name has to be computed."

How do we decide whether to use the function or the operator?

Cheers,

-- 
Seb

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed Sep 27 06:57:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 26 Sep 2006 - 23:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.