Papierkorb (Stefan Merettig)
- Login: Papierkorb
- Registered on: 02/28/2016
- Last sign in: 01/30/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
03/15/2016
-
07:56 PM Ruby Feature #12125: Proposal: Shorthand operator for Object#method
- Yusuke Endoh wrote:
> Nobuyoshi Nakada wrote:
> ...
The tetris-operator `.:` makes sense to me, but in respect to `:::` I don't think we should allow "alternative" operators to do the same thing.
02/29/2016
-
02:14 PM Ruby Feature #12125: Proposal: Shorthand operator for Object#method
- Yukihiro Matsumoto wrote:
> but I don't think `->` is a good idea.
Other options I can think of are:
* Using `.>`: `the_object.>a_method` While its look is nearer to a normal method call (Which I think is a plus), I fear that the...
02/28/2016
-
09:43 PM Ruby Feature #12125: Proposal: Shorthand operator for Object#method
- > The & operator lets one pass a #call-able object as block.
I meant `#to_proc`-able objects, sorry for the confusion. -
09:39 PM Ruby Feature #12125 (Open): Proposal: Shorthand operator for Object#method
- Hello,
The `&` operator lets one pass a `#call`-able object as block.
Really useful feature, but at the moment, if you want to pass a `Method` this way the syntax is not really concise:
```ruby
Dir["*/*.c"].map(&File.method(:ba...