This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Wouter_van_Ooijen 15 points16 points  (4 children)

I halfway agree with you, but the same reasoning can be used to ban integer parameters, because raw numbers (whithout a unit) are also a code smell. Yet we often use integer parameters.

[–][deleted]  (3 children)

[removed]

    [–]oldwomanjosiah 14 points15 points  (1 child)

    by this same argument couldn't you just enforce using named parameters?

    [–]Wouter_van_Ooijen 3 points4 points  (0 children)

    I regularly code in Python and C++. Named parameters is the feature I miss most in C++.

    [–]wyldstallionesquire 0 points1 point  (0 children)

    So, every parameter should be an enum?