Re:"Useless Ruby sugar": Argument forwarding
by gls2ro on Saturday November 25, 2023 @03:18AM
(#38412109)
Positional arguments creates a dependency on the position of the argument. And this is a cause of bugs when calling a method with the arguments in the wrong order.
Keyword arguments remove the depedency on the position.
Keyword arguments remove the depedency on the position.