Project

General

Profile

Feature #17163

Rename `begin`

Added by sawa (Tsuyoshi Sawada) about 2 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:99973]

Description

Range#begin is a getter method; it returns a value, and does not have a side effect, or does any calculation. Nevertheless, "begin" is a verb, so there is a mismatch. I would rather expect a noun.

It has a counterpart Range#end, and "end" is a noun as well as a verb, so that is not strange.

I propose to alias Range#begin to a noun or a nominal. "beginning" will work, but it may be too long, so what about "start", which works as a noun (as well as a verb)?

Range#start

No data to display

Also available in: Atom PDF