Nov 15, 2024
Interesting view; however, one thing I would add is what is the operational cost of executing and creation of those objects performance wise.
There are no free lunches, and for your example, a switch/case statement maybe even faster better of a solution.