This problem was not reproduced with `--parser=prism`, but with `--parser=parse.y`. ```ruby # shareable_constant_value: literal # test.rb puts RUBY_DESCRIPTION A = [a: 1] p A ``` ```shell $ ruby --parser=prism test.rb r...osyo (manga osyo)
How about using `**`? ```ruby def bar? = false { foo: 1, **(bar? ? { bar: 2 } : {}) } # => {:foo=>1} ``` Also, you can use `**nil` in ruby 3.4-dev. ```ruby def bar? = false { foo: 1, **({ bar: 2 } if bar?)...osyo (manga osyo)
Define Numbered parameters and a method in one block and then reference Numbered parameters in another block, you will get a SyntaxError in Ruby 3.3. This is not a problem in Ruby 3.2. ```ruby 'a'.tap do p _1 def f1; end en...osyo (manga osyo)
support. (https://github.com/ruby/reline/pull/570) Fix it https://github.com/ruby/reline/issues/558 https://github.com/ruby/reline/commit/0f8000443e Co-authored-by: Stan Lo <stan001212@gmail.com>osyo (manga osyo)
CTRL+d (https://github.com/ruby/reline/pull/571) * Fix [nil] is passed to auto_indent_proc when exit with CTRL+d Fix it https://github.com/ruby/reline/issues/556 * not call auto_indent_proc when Ctrl+d. see: https://github.com/ruby/r...osyo (manga osyo)
nobu (Nobuyoshi Nakada) wrote in #note-4: > `"3.2" <= RUBY_VERSION` won't work when `RUBY_VERSION` is "3.10", but probably never. > ... Sorry for the delay in replying. Thank you.osyo (manga osyo)
nobu (Nobuyoshi Nakada) wrote in #note-2: > Since `pp.rb` is a part of a default gem now, you have to consider the compatibility with older versions. Thanks. I've tried to fix it, but what do you think. https://github.com/ruby/ruby...osyo (manga osyo)
While trying out the `Data` library I noticed that `Data#pretty_print` is not supported. `Data#inspect` included members, but `Data#pretty_print` does not. ```ruby require "pp" D = Data.define(:hoge, :foo, :bar) data = D.new("ho...osyo (manga osyo)