Project

General

Profile

Actions

Feature #17163

open

Rename `begin`

Added by sawa (Tsuyoshi Sawada) about 4 years ago.

Status:
Open
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

Actions

Also available in: Atom PDF

Like0