General

Profile

americodls (Americo Duarte)

  • Registered on: 02/18/2017
  • Last connection: 09/22/2018

Issues

Activity

04/05/2018

05:12 PM Ruby trunk Feature #14594: Rethink yield_self's name
My two cents:
This method acts like a **pipe operator**, it passes itself **through** the block and returns whatev...

10/19/2017

01:46 AM CommonRuby Feature #13581: Syntax sugar for method reference
matz (Yukihiro Matsumoto) wrote:
> I am for adding syntax sugar for method reference. But I don't like proposed synt...

05/24/2017

01:06 AM Ruby trunk Bug #13592: Enumerable#reduce with symbol does not respect method visibility
This is exactly what I am saying.
This behavior of `reduce` is unpredictable and different of the another `Enumera...

05/23/2017

04:08 PM Ruby trunk Bug #13592 (Open): Enumerable#reduce with symbol does not respect method visibility
03:53 PM Ruby trunk Bug #13592 (Feedback): Enumerable#reduce with symbol does not respect method visibility
Please, reconsider. Look this example:
~~~
irb(main):092:0> :puts.to_proc.call("")
NoMethodError: private meth...
02:43 PM Ruby trunk Bug #13592: Enumerable#reduce with symbol does not respect method visibility
Sorry, ignore the IRB thing. But my question about the reduce still valid.
02:37 PM Ruby trunk Bug #13592 (Closed): Enumerable#reduce with symbol does not respect method visibility
When use reduce with symbol, I expect the symbol is called in object but respecting the method visibility.
Example...

05/20/2017

12:27 AM CommonRuby Feature #13581: Syntax sugar for method reference
Why the version with symbol (`Math->:sqrt`) needs to be supported?

05/19/2017

02:16 PM CommonRuby Feature #13581: Syntax sugar for method reference
The **`->`** was just a suggestion... Could be another symbol or combination of symbols like **`Math->>sqrt`**, **`Ma...
12:44 PM CommonRuby Feature #13581 (Open): Syntax sugar for method reference
Some another programming languages (even Java, in version 8) has a cool way to refer a method as a reference.
I wr...

Also available in: Atom