the difference is that you aren't dynamically choosing the function based on a string at runtime.  And the function itself has no if in it.