General

Profile

zimbatm (zimba tm)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 4 5

Activity

05/10/2015

06:01 PM Ruby Misc #11131 (Closed): Unexpected splatting of empty kwargs
~~~ruby
def foo(); :ok end
foo(*[]) #=> :ok
foo(**{}) #=> ArgumentError: wrong number of arguments (1 for 0)
foo(*[], **{}) #=> ArgumentError: wrong number of arguments (1 for 0)
~~~
I was expecting kwargs splatting to work the s...
zimbatm (zimba tm)

03/04/2015

10:34 AM Ruby Feature #10927: [PATCH] Add default empty string to string replacements
Alright but a change doesn't necessarily need to be substantial to improve developer happiness. It seems like my little hack has two aspects to it that I would like to address separately.
`"foo".gsub("o")` currently doesn't do any sub...
zimbatm (zimba tm)

03/02/2015

04:26 PM Ruby Feature #10927 (Open): [PATCH] Add default empty string to string replacements
Hi ruby devs !
A common case for string substitution is to just remove the found items. This patch changes the `String#[g]sub[!]` methods to allow that.
Old usages:
"foo".sub("o", "") #=> "fo"
"foo".gsub("o", "") #=> "f...
zimbatm (zimba tm)

04/12/2011

09:16 PM Ruby Feature #4553: Add Set#pick and Set#pop
=begin
#pop is often associated to stack operations, which implies an order. Unless a better name is found, isn't set.delete(set.take) enough ?
#take can be an alias of #first but I'm not sure if Enumerable should be included in Set i...
zimbatm (zimba tm)
09:10 PM Ruby Feature #4541: Inconsistent Array.slice()
I don't see the advantage of having nil returned in any case since the empty array already expresses the "there is no object in that range".
Out of bound can be tested separately if necessary, but most of the cases you just want to ge...
zimbatm (zimba tm)
07:14 PM Ruby Feature #4569: Replace IPAddr with IPAddress
=begin
Hi Marco, awesome lib. I read trough it and here are the thoughts I had:
* IPAddr#[] and IPAddr#each don't hold the same elements, could it be a source of confusion ?
* Is it possible to avoid extending the ruby core ?
Cheers,
J...
zimbatm (zimba tm)

03/31/2011

11:15 PM Ruby Bug #4545 (Closed): [PATCH] syslog extension documentation improvements and fixes
=begin
Small documentation fixes for the syslog extension.
The patch is a GIT patch on top of 7487298584145058f2340dc7a6e4da8d21fe5248.
Please let me know if you need a SVN patch instead.
Cheers,
Jonas
=end
zimbatm (zimba tm)

01/20/2011

01:57 AM Ruby Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
How is that a bug ? If ping is surrounded by quotes, ruby will look for an executable named "ping" with the quotes around. If ruby starts to magically remove these quotes, I'm not sure it will bring other unwanted side-effect. Bu...
zimbatm (zimba tm)

01/19/2011

02:34 AM Ruby Bug #4291: rb_time_new with negative values (pre-epoch dates) on Windows
=begin
Shouldn't we use 64bit on all platforms instead ?
=end
zimbatm (zimba tm)
02:25 AM Ruby Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Actually, protecting from async exceptions in the ensure block would
be mostly backward-compatible. It means that while a thread is in that
part of the code, no other thread would be running. Only code that
will break, would b...
zimbatm (zimba tm)

Also available in: Atom