General

Profile

yugui (Yuki Sonoda)

  • Login: yugui
  • Email: yugui@yugui.jp
  • Registered on: 04/27/2008
  • Last sign in: 03/14/2023

Issues

open closed Total
Assigned issues 0 74 74
Reported issues 0 67 67

Projects

Project Roles Registered on
Ruby Committer 04/27/2008

Activity

09/22/2022

10:51 AM Ruby Feature #19015: Language extension by a heredoc
one bikeshedding..
Usually syntax-suger in Ruby are mapped into methods whose names are very consistent with the syntax. e.g. `` ` ``, `[]=`, or `foo=`. Therefore, it is more consistent to map the new syntax into `<<!LANG` method.
It...
yugui (Yuki Sonoda)

06/16/2019

02:28 PM Ruby Bug #15928: Constant declaration does not conform to JIS 3017:2013
s/lhs/rhs/ yugui (Yuki Sonoda)
02:25 PM Ruby Bug #15928 (Closed): Constant declaration does not conform to JIS 3017:2013
The order of evaluation in constant declaration does not conform to JIS 3017:2013 11.4.2.2.3.
# Problem
Suppose that we are evaluating the following program.
```ruby
expr::C = rhs
```
The standard seems to be requiring the ...
yugui (Yuki Sonoda)
01:43 PM Ruby Revision 44caca11 (git): Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3
compile.c (NODE_CDECL): Evaluate the module before the value
test/ruby/test_const.rb (test_evaluation_order): added a test case
yugui (Yuki Sonoda)

10/01/2018

03:32 AM Ruby Bug #15179 (Feedback): Segfault caused by only 'loop{ x<<[] }'
Linuxのオーバーコミットが怪しいと思うんですが、`vm.overcommit_memory` を無効に設定しても同じ現象が発生しますか? yugui (Yuki Sonoda)

05/13/2018

11:32 PM Ruby Feature #14249: Remove str[match_str]
IIUC, Ana is saying that `str[match_str]` does not make sense because it always returns `match_str`.
But it does make sense because it returns `nil` if `str` does not contain such a substring. i.e. it is useful to test if the string con...
yugui (Yuki Sonoda)

05/01/2018

04:27 AM Ruby Bug #14726: wrong message when superclass is not a Class
なるほど、それは気づきませんでした。すると、こうでしょうか。
```c
rb_raise(rb_eTypeError, "superclass must be a Class (given a(n) %"PRIsVALUE")",
```
https://en.wiktionary.org/wiki/a(n)
yugui (Yuki Sonoda)
02:34 AM Ruby Bug #14726: wrong message when superclass is not a Class
ああ、補足ですが、`super` の属するクラスではなく `super` の文字列表現を表示するというパッチの案に対しては、誤ってmoduleを渡した場合が心配です。
そのmoduleをクラスだと思い込んでいると却って分かりづらいのではないでしょうか。
yugui (Yuki Sonoda)
02:31 AM Ruby Bug #14726: wrong message when superclass is not a Class
どちらかというと元の仕様のほうに賛成で、これはバグではないという認識です。Classオブジェクトを期待していたのにC1オブジェクトが来たというのはどちらも `super` の属するクラスの話をしていて、そのパッチよりもバランスが取れています。
このエラーメッセージが分かりにくいのは冠詞が抜けているからではないでしょうか。
```diff
- rb_raise(rb_eTypeError, "superclass must be a Class (%"PR...
yugui (Yuki Sonoda)

02/11/2018

11:54 PM Ruby Feature #14362: use BigDecimal instead of Float by default
> I think most developers are familiar with the inaccurate nature of division on computers. ... However, with Float you end up with errors that are less predictable
These statements sounded weird for me. Why do you think they are not ...
yugui (Yuki Sonoda)

Also available in: Atom