From: Yukihiro Matsumoto Date: 2008-11-16T00:48:54+09:00 Subject: [ruby-core:19942] Re: Proposal: Method#get_args Hi, In message "Re: [ruby-core:19941] Re: Proposal: Method#get_args" on Sun, 16 Nov 2008 00:44:50 +0900, Yukihiro Matsumoto writes: ||Matz, does this satisfy your initial concerns? | |I guess so. I'd like to make sure two more things: | | * symbol for block argument should be :block, or anything else? | * if you don't have a rest argument name, you will get [:rest], ok? One more: > def foo(a, b = 1, *c, d) > => [[:req, :a], [:opt, :b, 1], [:rest, :c], [:req, :d]] what if the default value for an optional argument is more than a simple literal? :expr as Austine mentioned in [ruby-core:19882]? Or drop default values altogether? matz.