If we want to implement a double dispatch method in R, we currently have two options to choose from:
- S4 methods
- vctrs library S3-based double dispatch
I especially mean arithmetic operators, such as + or *.
How do they compare in terms of performance? Are their overheads comparable?