Project

General

Profile

Actions

Feature #15523

open

Let `Range#begin` and `Range#end` be aliases of Range#first and Range#last

Added by sawa (Tsuyoshi Sawada) about 5 years ago. Updated about 5 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:91010]

Description

My understanding is that Range#begin and Range#end's features are just subsets of Range#first and Range#last, respectively. And since they are slightly confusing with the keywords begin and end, I propose to either:

  • Let Range#begin and Range#end be aliases of Range#first and Range#last, respectively, or
  • Let Range#begin and Range#end be obsolete after a migration path of waning against their use and recommending the use of Range#first and Range#last instead.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0