General

Profile

cben (Beni Cherniavsky-Paskin)

  • Login: cben
  • Email: cben@redhat.com
  • Registered on: 01/02/2017
  • Last sign in: 01/28/2018

Issues

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

Activity

05/23/2018

09:47 AM Ruby Feature #13581: Syntax sugar for method reference
Matz, could you give your thoughts on obj::method (with lowercase on right side) syntax?
AFAICT it's synonym to obj.method?
Does anybody use :: for method calls in practice?
I understand breaking compatibility can't be justified her...
cben (Beni Cherniavsky-Paskin)

02/12/2018

11:54 PM Ruby Feature #13581: Syntax sugar for method reference
A non-syntax idea: could `Math.method.sqrt` look significantly nicer than `Math.method(:sqrt)`?
That is, .method without args would return a magic object that for any message returns the bound method of that name.
~~~ruby
[1, 4, 9]....
cben (Beni Cherniavsky-Paskin)

05/14/2017

11:51 AM Ruby Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurable
Can confirm on 2.4.1.
The responsible code is here: https://github.com/ruby/ruby/blob/v2_4_1/lib/net/http.rb#L1468
I'm thinking of making a simple patch adding a boolean "#retry=". Application or higher-level gems can then implement a...
cben (Beni Cherniavsky-Paskin)

Also available in: Atom