General

Profile

sobrinho (Gabriel Sobrinho)

Issues

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

Activity

06/12/2024

07:17 PM Ruby Revision 94a8f05f (git): [rubygems/rubygems] Fix test description
https://github.com/rubygems/rubygems/commit/4bcdb854a2 sobrinho (Gabriel Sobrinho)

07/02/2020

11:34 AM Ruby Feature #16986: Anonymous Struct literal
+1 for the idea, I'm using my_hash.fetch(:my_key) to ensure consistency in a lot of places.
Concerns:
1. Struct is slow (should not be that hard to improve, though)
2. ${} will be hard to read, search and explain about
3. It woul...
sobrinho (Gabriel Sobrinho)

12/22/2017

07:10 PM Ruby Feature #14224 (Rejected): Boolean class
Suggestion: TrueClass and FalseClass inheriting from Boolean (new superclass).
This would make true/false checking easier, like:
```
unless value.is_a?(Boolean)
raise "Non-boolean value"
end
```
Currently we have to check ...
sobrinho (Gabriel Sobrinho)

05/19/2017

09:48 PM Ruby Feature #13585 (Rejected): select! and reject! do not returns the same array in specific situations
When all elements are returned on select!, the method returns nil.
~~~
(main) normal> [1,2,3].select! { |x| x == 0 }
=> []
(main) normal> [1,2,3].select! { |x| x == 1 }
=> [1]
(main) normal> [1,2,3].select! { |x| x == 1 || x == 2...
sobrinho (Gabriel Sobrinho)

01/21/2015

08:22 PM Ruby Bug #10767 (Rejected): Time.local doesn't raise an exception during the dead hour on DST
At the begin of DST ruby is accepting the 0 hour which in fact doesn't exists:
Time.local(2014, 10, 19, 0, 30)
#=> 2014-10-19 01:30:00 -0200
Time.local(2014, 10, 19, 1, 30)
#=> 2014-10-19 01:30:00 -0200
Tim...
sobrinho (Gabriel Sobrinho)

11/04/2014

11:16 PM Ruby Feature #10477 (Open): Implicit interfaces
Hello guys,
I would to suggest us to discuss about implementing implicit interfaces on Ruby like Go.
> Go does not have classes. However, you can define methods on struct types. The method receiver appears in its own argument list ...
sobrinho (Gabriel Sobrinho)

10/02/2013

09:18 PM Ruby Feature #8976: file-scope freeze_string directive
Maybe I'm too late but why not use the same object when calling String#freeze?
I mean, currently this:
> "something".freeze.object_id
=> 70273877530260
> "something".freeze.object_id
=> 70273877536840
And change the c...
sobrinho (Gabriel Sobrinho)

Also available in: Atom