79809489

Date: 2025-11-04 23:33:25
Score: 2.5
Natty:
Report link

@your-common-sense Wouldn't type safety be one reason?

If I had only a set() method, I can't have explicit enforcement for all 3 types. I'd have to use mixed or object|callable.

Having separate methods allows me to be more explicit in how each service is stored.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @your-common-sense
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: germanshedder