Why is this better than haven an object or class with the appropriate named functions? Why having a single function and then using a switch statement? At least this example implementation seems imperformant and error prone to me.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
Why is this better than haven an object or class with the appropriate named functions? Why having a single function and then using a switch statement? At least this example implementation seems imperformant and error prone to me.