"David A. Black" <dblack / wobblini.net> wrote

> How would you move this call to #join to a method signature?
>
>     def meth(a)
>       puts a.join(", ")
>     end
>
> I think there are only two ways:
>
>    1. put the whole thing, including the ", ", into the signature
>       (which I doubt anyone would advocate);

But you need no advocating to do, even today:
    def meth (a, b = a.join(","))
        b
    end

The only difference that 'b' is a variable with a default binding, which the
caller can replace.

True?