From: nobu@...
Date: 2016-04-02T09:31:17+00:00
Subject: [ruby-core:74784] [Ruby trunk Feature#12240][Rejected] circle	number arguments

Issue #12240 has been updated by Nobuyoshi Nakada.

Status changed from Open to Rejected

----------------------------------------
Feature #12240: circle number arguments
https://bugs.ruby-lang.org/issues/12240#change-57910

* Author: Nobuyoshi Nakada
* Status: Rejected
* Priority: Normal
* Assignee: joke
----------------------------------------
Often improvements about implicit block argument have been proposed, but in vain.

Such as:

~~~ruby
[[1, 2], [3, 4]].map {|a1, a2| a1+a2} #=> [3, 7]
~~~
to

~~~ruby
[[1, 2], [3, 4]].map {_1+_2}
~~~

Now, we (ko1 and nobu) found and propose the *perfect* solution.

~~~ruby
[[1, 2], [3, 4]].map {���+���}
~~~

`���`..`���` denote the arguments upto 20.

https://github.com/ruby/ruby/compare/trunk...nobu:feature/number-arg



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>