Project

General

Profile

Actions

Feature #7359

closed

#eql? and #equal? naming

Added by aef (Alexander E. Fischer) about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
[ruby-core:49371]

Description

In my opinion the difference between @#eql?@ and @#equal?@ is really unintuitive. How about making their difference more obvious by giving one of them a more accurate name?

My proposal is to rename @#equal?@ to @#identic?@.

If you deprecate #equal? at the same time, maybe in the far future it can have a comeback as an alias for #eql? to make those people happy who dislike to use abbreviations just to reduce the character count by two and simultaneously making it harder to read in a classical sense.

If you like it, let me know. Then I will provide a patch.

Actions

Also available in: Atom PDF

Like0
Like0Like0