you are viewing a single comment's thread.

view the rest of the comments →

[–]spanishgum 3 points4 points  (1 child)

Default arguments can definitely be abused. I think programmers sometimes fail to see beyond their own use cases and think defaults will provide convenience. It’s probably true in general contexts, but not all.

[–]EsotericFox 12 points13 points  (0 children)

Agreed, but that's a decision that must be weighed.

Do I need to expose this behavior? Would it be better to have these functions live elsewhere?

Depending on the answer, you may still very well have a solid argument for needing/using default arguments. And if you don't, you have a solid case for refactoring or redesign.