General

Profile

pabloh (Pablo Herrero)

Issues

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

Activity

01/14/2026

06:09 AM Ruby Feature #21813: Add [:forward, :...] symbol tuple to indicate forwarding arguments when calling `Method#parameters`
@nobu Perhaps I came up with a contrived example, but I wanted to point out that there is a lack of symmetry when it comes to `...`
As of right now, there is no way to know from the `Method` reflection API alone whether a method is usin...
pabloh (Pablo Herrero)

12/30/2025

12:22 AM Ruby Feature #21813 (Rejected): Add [:forward, :...] symbol tuple to indicate forwarding arguments when calling `Method#parameters`
When accessing `Method#parameters` for a method using forwarding parameters, an unexpected behavior arises:
```ruby
def foo(*, **, &)
args = method(__method__).parameters.map(&:last).join(',')
binding.eval "print(#{args})" # ...
pabloh (Pablo Herrero)

12/06/2025

10:51 PM Ruby Misc #21689: DevMeeting-2025-12-11
* [Feature #19979] Reconsider adding `&nil` to method declarations, to signal it won't accept a block
* Adding this feature should be possible now that the syntax moratorium is over
pabloh (Pablo Herrero)

11/20/2025

02:07 AM Ruby Feature #19979: Allow methods to declare that they don't accept a block via `&nil`
Given that the next release will be Ruby 4.0, and that the Syntax moratorium should be over.
Do you think it's possible you could reconsider adding this feature?
pabloh (Pablo Herrero)

11/06/2025

03:26 PM Ruby Feature #21665: Revisit Object#deep_freeze to support non-Ractor use cases
I really think the naming scheme should clearly distinguish between regular objects from classes/modules.
Freezing modules/classes should be separated into their own ad-hoc methods, since you can break a lot of existing code if you free...
pabloh (Pablo Herrero)

07/08/2025

12:11 AM Ruby Feature #20405: Inline comments
I like Marco's proposal, but I wonder how much code out there could potentially break. pabloh (Pablo Herrero)

08/27/2024

06:04 AM Ruby Bug #20701 (Closed): Hash argument passed as keyword splat can be mutated inside method
If you call a method with a splatted kwargs that also uses a splatted array followed by at least one positional argument, the called method can mutate the splatted kwargs.
``` ruby
def foo(a, h)
h[:splat_modified] = true
end
a...
pabloh (Pablo Herrero)

07/04/2024

07:35 PM Ruby Feature #20405: Inline comments
This could be particularly useful for projects like `rbs-inline`. pabloh (Pablo Herrero)

11/14/2018

05:33 PM Ruby Feature #6284: Add composition for procs
nobu (Nobuyoshi Nakada) wrote:
> I've forgotten to post the patch to use `<<` and `>>`.
> ...
Is adding composition methods to the Symbol class still being considered?
pabloh (Pablo Herrero)

08/08/2016

03:59 PM Ruby Feature #9704: Refinements as files instead of modules
It would be interesting to be able apply a refinement to a whole app (without its gems) or inside a single gem without propagating to the rest of the app which loaded it.
Although I'm not really sure about the syntax or API to do it.
pabloh (Pablo Herrero)

Also available in: Atom