This is a tangible step backwards since compilers can often devirtualise calls, which your switch statement (or function pointer struct) can’t.
Hii ni hatua yanayoonekana nyuma tangu compilers mara nyingi unaweza devirtualise wito, ambayo kubadili kauli yako (au kazi pointer struct) hawawezi.