Skip to content
Prev 11488 / 21312 Next

[Bioc-devel] role of replaceSlots in BiocGenerics

One of the reasons it's not exported is because it started as something
kind of experimental and we didn't find a good home for it yet. I could
probably move it to S4Vectors where we already have some low-level
S4-related utils. Not the best home either but maybe better than in
BiocGenerics?

IMO using something like replaceSlots() or initialize() is still better
than using direct slot assignment when you need to replace more than 1
slot. It's more compact and provide an all-slots-are-modified-at-once
semantic (atomicity) which can be useful if modifying the slots one
after the other could temporarily create an invalid object.

H.
On 09/06/2017 03:41 PM, Vincent Carey wrote: