General

Profile

ujihisa (Tatsuhiro Ujihisa)

  • Login: ujihisa
  • Registered on: 06/03/2008
  • Last sign in: 01/09/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 11 12

Activity

11/03/2022

07:21 PM Ruby Feature #19099: Support `private_constant` for an undefined constant
I tried both the `private_const_set` and the idiom with a local variable versions locally, and found that the `private_const_set` worked better. The fact that the whole statement begins with "private" really helped.
Didn't like the idea...
ujihisa (Tatsuhiro Ujihisa)

11/02/2022

05:12 AM Ruby Feature #19099 (Open): Support `private_constant` for an undefined constant
All the following discussion applies to `public_constant` too. Maybe `deprecate_constant` as well.
## Problem
```ruby
class C
X = ...
private_constant :X
end
```
The above idiom usually works fine, but when `...` part i...
ujihisa (Tatsuhiro Ujihisa)

08/17/2022

03:23 AM Ruby Feature #17330: Object#non
> non() and oui()
Since what these 2 methods do aren't trivial from the names, how's the following 2-words names instead?
`itself_if`
`itself_unless`
These return either the object itself or nil, so it makes sense to have the method n...
ujihisa (Tatsuhiro Ujihisa)

07/17/2020

12:07 AM Ruby Bug #17033: Infinite Traceback when encountering an Exception while catching an Exception
(Oh I see, this and https://bugs.ruby-lang.org/issues/14566#change-71448 were independent) ujihisa (Tatsuhiro Ujihisa)

08/04/2019

02:55 AM Ruby Revision f85caf40 (git): [ruby/rexml] Message less confusing error to human (#16)
* Message less confusing error to human
* Problem: Following error message is not helpful, because you have to reason
that '' actually means it's in the top-level, and the 'div' (not '</div>') is
an end tag
require "rexml/p...
ujihisa (Tatsuhiro Ujihisa)

04/13/2019

05:19 AM Ruby Bug #15670: Ripper treats :"sym" as xstring
This change broke a library preval https://github.com/kddeisz/preval/issues/1, and potentially also breaks other libraries that uses Ripper. Since this is an incompatible change for Ripper.sexp, I guess backport requires a loud changelog... ujihisa (Tatsuhiro Ujihisa)

12/06/2018

05:25 AM Ruby Bug #15385: Ruby process hang in ensure
This reproduces even without timeout library.
~~~ ruby
def doh
raise
ensure
123 if false
end
doh
~~~
looks like this is because the optimizer removed `if false` or `if nil` without adding `nop` iseq.
ujihisa (Tatsuhiro Ujihisa)

09/21/2018

08:17 AM Ruby Bug #14959: Writing a "link_to" method and a "url_helper" with a request parameter under certain "if else" statement in Rails helper crashes with KERN_INVALID_ADDRESS at 0x0000000000000000
I'm not sure if it's going to be backported to current stable version 2.5 but let me clarify couple things just in case for future.
* This is issue does not depend neither rails nor bootsnap
* Yet another minimal reproducible code to...
ujihisa (Tatsuhiro Ujihisa)

06/04/2018

06:49 AM Ruby Feature #14763 (Closed): Allow more Enumerable methods to accept method names as symbol arguments
closing this on behalf of sunnyrjuneja ujihisa (Tatsuhiro Ujihisa)

04/11/2018

08:08 AM Ruby Bug #14566: `raise` in `Exception#message` causes infinite loop
Thx! ujihisa (Tatsuhiro Ujihisa)

Also available in: Atom