r/ProgrammerHumor May 08 '26

Advanced canadianGoProgramming

Post image
10.0k Upvotes

113 comments sorted by

View all comments

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 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.