Skip to content
Prev 3497 / 21307 Next

[Bioc-devel] best practices for callGeneric()

Hi Michael,
I have some examples where I delegate by first casting the dispatched
argument and then directly calling the generic again. I assume that is
more or less equivalent to what you are doing, avoiding the readability
issues. The problem with the somewhat obscure argument list remains,
however (unless you explicitly list all formal arguments, but then you
might have to extract them from ?). When reading through the code this
still looks odd because you get the impression that you method is somewhat
recursive. So not sure whether that solution is any better than
callGeneric?
Florian