DEV Community

Discussion on: No love for boolean parameters

Collapse
 
baenencalin profile image
Calin Baenen

I would say flags don't always have to be part of SRP as long as the "responsibility" is broad enough to fit it. Technically that function could have a single responsibility.
Like class C and class D extending from class B which extends A.