Hacker News new | ask | show | jobs
by kevinkemp 5322 days ago
I wouldn't lump named parameters and defaults together like that. They're completely separate concepts.
1 comments

true, but they kind of go hand in hand.

The nice part about named params is that it can make your code more clear if you have a lot of parameters on a method... but you could do the same thing by introducing a parameter object and be as clear and more resistant to change.