From: "David A. Black" Date: 2005-10-22T02:22:32+09:00 Subject: Re: A comparison by example of keyword argument styles Hi -- On Fri, 21 Oct 2005, Trans wrote: > So maybe just treat named parameters like blocks. You can have em or > not. But you don't need to define them in the interface. Currently I do > a lot of > > def( *args ) > keys = args.last.is_a?(Hash) ? args.pop : {} > a,b,c = *args > > If I could just do > > def( a, b, c, **keys ) > ... > > I'd be happy enough. > > T. > > P.S. But I don't much care for double character '**'. Single character > would be better. Perhaps '#' or '%'. def meth(a,b,#c) that's a comment def meth(a,b,%w_w) # this one is ambiguous David -- David A. Black dblack@wobblini.net