From: Yusuke Endoh Date: 2012-03-21T19:26:22+09:00 Subject: [ruby-core:43523] Re: Arguments, assignment and pattern matching. Hello, 2012/3/17, Ond?ej Bilka : > I assume that arguments can be captured in Argument object. This gives > us also multiple return for free. > def foo(*a);a;end > foo(1,2,x:1,y:2) # Argument[1,2]{x:1,y:2} > [3,4,a:1,b:2] # Argument[3,4]{a:1,b:2} Interesting, but such a drastic idea requires many things: - advantages/disadvantages table - a prototype - contemplated semantics (there should be many corner cases) - a benchmark (it may degrade the performance) Anyone is interested in working on this idea? -- Yusuke Endoh