3 ms·
Hard no. My visceral reactions to this: - Strings are not names. Names help tooling, strings make tooling harder. - A function which takes a string to switch
by iandanforth 7y ago
Hard no. My visceral reactions to this:
- Strings are not names. Names help tooling, strings make tooling harder.
- A function which takes a string to switch on where behavior radically differs between cases is an anti-pattern.
- Imports should be explicit and well organized, not magic and scattered throughout the code.