-
Notifications
You must be signed in to change notification settings - Fork 630
[en,ja]Add regression-of-hash-reject-in-ruby-2-1-1 #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
IMO, we should add a notice about it to 2.1.1 release announcement. Thought? |
Agreed: 1d35e76 |
@@ -0,0 +1,36 @@ | |||
--- | |||
layout: news_post | |||
title: "Ruby 2.1.1 に含まれる Hash#reject のデグレードについて" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using "リグレッション" (or "不具合" simply) instead of "デグレード"?
In the English version, a word "regression" is used for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"不具合" !!!!
@sorah Good work, but I have no time to review your issue 🙏 |
@@ -16,6 +16,8 @@ lang: ja | |||
|
|||
なお以前お伝えしましたとおり、Ruby 2.1 では[新しいバージョン表記](https://www.ruby-lang.org/ja/news/2013/12/21/semantic-versioning-after-2-1-0/)を採用していますので、単純に「Ruby 2.1.1」というのがこのリリースの名称になります。 | |||
|
|||
__追記:__ Ruby 2.1.1 において、`Hash#reject` のデグレードを発見しています。詳細はこちらをご覧ください: https://www.ruby-lang.org/ja/news/2014/03/10/regression-of-hash-reject-in-ruby-2-1-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- A word "デグレード" is now replaced with "不具合" in the article about the regression.
- "...を発見しています" is a little unnatural. How about "が発見されました" or "を発見しました"?
The Japanese contents look good to me. 👍 |
In Ruby 2.1.0 or earlier, the `reject` method in any class that inherits `Hash` returns an object of its own class. | ||
But in Ruby 2.1.1, this behavior has changed accidentally to return always a plain Hash object, not of the inherited class. | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
highlighted code with
{% highlight ruby %}
... code ...
{% endhighlight %}
OK, thanks |
[en,ja]Add regression-of-hash-reject-in-ruby-2-1-1
Good work everyone! |
Solves #665
This is requested by @nurse and @hsbt
CC: @zzak