General

Profile

Eregon (Benoit Daloze)

  • Login: Eregon
  • Registered on: 07/30/2009
  • Last sign in: 07/10/2026

Issues

open closed Total
Assigned issues 2 67 69
Reported issues 33 200 233

Projects

Project Roles Registered on
Ruby Committer 08/02/2012

Activity

07/25/2026

08:51 PM Ruby Feature #22205: Deprecate ruby2_keywords
Ah one more thing I wanted to mention is it might still be possible to support Ruby 2.7 in gems without `ruby2_keywords` by using `def foo(...); bar(...); end` which was introduced in Ruby 2.7.2 (although that does not cover all delegati... Eregon (Benoit Daloze)
08:48 PM Ruby Feature #22205: Deprecate ruby2_keywords
Big +1 from me, and agreed it's definitely worth deprecating them but also there is no immediate need so the proposed schedule sounds good to me.
The main thing I'm interested to remove is the special dispatch on `foo(*args)` when `ar...
Eregon (Benoit Daloze)
08:16 PM Ruby Feature #22212: Add Thread::Backtrace::Location#source_range
Because that reply is long I'll also make a concise reply regarding use cases:
This API is useful to any tool or gem that needs to locate or extract the source code associated with an exception's `backtrace_locations` (or `caller_loca...
Eregon (Benoit Daloze)
08:04 PM Ruby Feature #22212: Add Thread::Backtrace::Location#source_range
I understand that, as the maintainer of `error_highlight`, you do not plan to use `Thread::Backtrace::Location#source_range`.
However, I do not think `#syntax_tree` can currently be considered a reliable alternative to this proposal.
...
Eregon (Benoit Daloze)
12:14 AM Ruby Feature #21795: Methods for retrieving ASTs
I asked Codex to analyze how stable are `node_id` across Prism versions and the answer is it's not stable:
https://gist.github.com/eregon/469e40f447f6edac813a389e7f3f4832
One interesting fact is that `node_id` tracks the internal nod...
Eregon (Benoit Daloze)

07/24/2026

11:35 PM Ruby Feature #21795: Methods for retrieving ASTs
From our discussion with @mame and @matz at RubyKaigi in Hakodate, I recall Matz said if we add `#ast`/`#syntax_tree` and that returns a `Prism::Node`, then `prism` should define that method.
And given we already have `Prism.find`, that...
Eregon (Benoit Daloze)
10:19 PM Ruby Feature #22212 (Open): Add Thread::Backtrace::Location#source_range
## Motivation
The main motivation is to be able to implement `Prism.find(Thread::Backtrace::Location)`,
and similar use cases which need to locate or extract the source code associated with a `Thread::Backtrace::Location`,
precisely...
Eregon (Benoit Daloze)
01:25 PM Ruby Bug #22197: Backtraces show methods which do not exist
PR is ready: https://github.com/ruby/ruby/pull/17963
Would appreciate some reviews :)
---
sophiathedev (Nguyen Thang) wrote in #note-2:
> This is my first time contributing to Ruby core. I've submitted a PR to fix this issue here...
Eregon (Benoit Daloze)

07/23/2026

09:11 PM Ruby Feature #21826: Deprecating RubyVM::AbstractSyntaxTree
Documentation-only PR for this: https://github.com/ruby/ruby/pull/18042 Eregon (Benoit Daloze)
08:58 PM Ruby Feature #21795: Methods for retrieving ASTs
mame (Yusuke Endoh) wrote in #note-27:
> That said, it is also an unshakable fact that perfect behavior is hard to guarantee with a different version of prism.
Yes, as I have shown above it is incorrect in some cases and as more time...
Eregon (Benoit Daloze)

Also available in: Atom