Skip to content
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

Use original method notation #633

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

aycabta
Copy link
Member

@aycabta aycabta commented Jun 24, 2018

At 297cd5a, method names are replaced with normalized text. But the feature has critical problems.

Some methods are replaced with parents class receiver

For example, the document of BasicSocket describes #read_nonblock for inheritance, but it's replaced with IO#read_nonblock. This behavior confuses users.

Arguments are removed

For example, the document of Time describes like below:

Time.utc(99) means the year 99 AD, not 1999 AD.

But it's replaced with:

Time.utc means the year 99 AD, not 1999 AD.

This behavior clearly is a bug.

This Pull Request removes the normalization logic.

At 297cd5a, method names are replaced with normalized text. But the
feature has critical problems:

1) Some methods are replaced with parents class receiver

For example, the document of BasicSocket describes #read_nonblock for
inheritance, but it's replaced with IO#read_nonblock. This behavior
confuses users.

2) Arguments are removed

For example, the document of Time describes like below:

  Time.utc(99) means the year 99 AD, not 1999 AD.

But it's replaced with:

  Time.utc means the year 99 AD, not 1999 AD.

This behavior clearly is a bug.

This patch removes the normalization logic.
@aycabta aycabta merged commit 4c7e445 into ruby:master Jul 3, 2018
@aycabta aycabta deleted the use-original-method-notation branch July 3, 2018 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant