DEV Community

Discussion on: A Case Against Switches

Collapse
 
g4vroche profile image
Hugues Charleux • Edited

An other point in favor of objects instead of switches, is that they are composables: we can spread the declaration of a big object through multiple files for a better code organisation.
It's a great pattern for example to keep Redux reducers gathered by domain / feature