Project

General

Profile

Feature #9804

File::CREATE as a synonym for File::CREAT

Added by alexeymuranov (Alexey Muranov) about 5 years ago. Updated about 5 years ago.

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

Description

I would like to have File::CREATE as a synonym for File::CREAT.

History

Updated by normalperson (Eric Wong) about 5 years ago

alexey.muranov@gmail.com wrote:

I would like to have File::CREATE as a synonym for File::CREAT.

At least give a reason for wanting this...

Fwiw, I am against adding more aliases/synonyms to core.
They increases human overhead to learn, and machine overhead to
store/cache.

New aliases will also confuse users on old versions who may browse
the web and find the new documentation.

On a side note, perhaps we should start adding a line like:
"This was added in Ruby X.Y.Z" in our RDoc for new features.
This is common in manpages, AFAICS.

Updated by alexeymuranov (Alexey Muranov) about 5 years ago

I do not think this increases human overhead to learn: CREATE is an English word, CREAT is not. This would allow me to avoid writing in my code

File::CREATE = File::CREAT

Also available in: Atom PDF