You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that some packages are starting to adopt S7, is it worth adopting S7 rather than implementing our own multiple-dispatch thingy? (although of course we need to prioritize a rewrite based on savvy and rlang first)
although of course we need to prioritize a rewrite based on savvy and rlang first
I agree with this, there are quite many things left to do in the rewrite so let's not add more complexity with this. It will be easier to weigh pros and cons once this big effort is finished.
But I'm interested in S7, I also need to learn more about it.
Yes, of course, applying S7 right now would complicate things and should be avoided.
But given that the multiple dispatch of base R operators (+, etc.) seems quite incomplete, the adoption of S7 seems to be an advantage.
In my opinion, this feature is not that important and it may be better to hold off on implementing it until S7 is ready to be adopted. https://rconsortium.github.io/S7/articles/generics-methods.html#multiple-dispatch
If multiple dispatches are to be achieved with S3 class methods, an approach such as the
vctrs
package may be necessary.For example:
The text was updated successfully, but these errors were encountered: