Project

General

Profile

Actions

Feature #7377

open

#indetical? as an alias for #equal?

Added by aef (Alexander E. Fischer) over 11 years ago. Updated over 6 years ago.

Status:
Open
Target version:
-
[ruby-core:49467]

Description

As my feature request #7359 got rejected, here a more backward-compatible approach:

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 alias #equal? to #identical?.

I'll write a patch, if this is acceptable.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0