General

Profile

aaronc81 (Aaron Christiansen)

  • Login: aaronc81
  • Registered on: 12/27/2019
  • Last sign in: 04/15/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/31/2019

05:30 PM Ruby Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
I think that the `[[:rest, :"..."], [:keyrest, :"..."], [:block, :"..."]]` solution looks like a good option, as it keeps roughly the same behaviour while adding the differentiation between `*args, &blk` and `...`. aaronc81 (Aaron Christiansen)

12/27/2019

05:35 PM Ruby Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
> Is there an advantage to have its own type of parameter?
I believe the advantages of doing this are:
- If Ruby ever introduces a new type of parameter, the result of `#parameters` won't need to change for existing code which us...
aaronc81 (Aaron Christiansen)
12:42 AM Ruby Feature #16456 (Closed): Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
A method defined with `...` as its parameter list is equivalent to one defined with `*args, &blk`, according to `Method#parameters`.
```ruby
def foo(...); end
p method(:foo).parameters
# => [[:rest, :*], [:block, :&]]
```
Even ...
aaronc81 (Aaron Christiansen)

Also available in: Atom