3 ms·
But now you have traded compile-time safety for a runtime error whenever the api changes. I’d prefer the switch in this case.
by bouke 5y ago
But now you have traded compile-time safety for a runtime error whenever the api changes. I’d prefer the switch in this case.