5 ms·
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..
by mendicant 15y ago
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.