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)
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)
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)
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)
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)
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)
## 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)
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)
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)