Re: Keyword Arguments

Steve Dekorte <[email protected]> Wed, 13 Jun 2012 13:08:39 -0700
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>

As objects are about coupling data and logic, if you're passing a lot of arguments(data) around
to methods (logic), then it looks suspiciously like you've failed to couple your data and logic.

If I were to take the position that all uses of multiple arguments (and therefore keyword arguments)
are failures to use proper OO design, could you provide a counter example?

For example, in this:

>     def render(view, formats = ["html"], cache = false)


formats and cache seem like natural instance variables of the receiver.

Steve