neohunter (Arnold Roa)
- Login: neohunter
- Email: manolet@gmail.com
- Registered on: 05/12/2015
- Last sign in: 05/12/2015
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
05/12/2015
-
01:53 PM Ruby Feature #11141: new syntax suggestion for abbreviate definition on block parameters in order
- Yukihiro Matsumoto wrote:
> We cannot use `$1` etc. as they are already taken for `Regexp` match.
> ...
Yes, I just use `$1` as an example to explain the idea, by no means I think `$1` would be a good choice as `$` is for global variab... -
12:45 AM Ruby Feature #11141 (Rejected): new syntax suggestion for abbreviate definition on block parameters in order
- One of the most commons things I do in Ruby are small block definitions:
~~~ruby
x.each{|a| a}
~~~
One useful syntax introduced was the **`&:method`** that allows calling a method on a block if only one param is expected. It's a ...