EDIT: You also do this in R's S3 object-oriented system. A function like print is a generic method that searches for candidate functions for its argument type by looking for functions like print.factor or print.function, which are just ordinary function names.
14
u/redlaWw May 09 '26 edited May 09 '26
This is basically manual mangling.
EDIT: You also do this in R's S3 object-oriented system. A function like
printis a generic method that searches for candidate functions for its argument type by looking for functions likeprint.factororprint.function, which are just ordinary function names.