Project

General

Profile

Feature #8663

Officialy alias ArgumentError to ArgError

Added by Anonymous almost 6 years ago. Updated almost 6 years ago.

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

Description

When not using custom made exceptions, I find myself using TypeError, NameError and ArgumentError the most. ArgumentError is the longest and I would like to suggest to alias it officially as ArgError.

History

Updated by duerst (Martin Dürst) almost 6 years ago

This just saves 5 characters, but creates confusion because now many people will start to wonder what the difference is between ArgumentError and ArgError, if any.

Updated by Anonymous almost 6 years ago

Yes, but one of those characters is 'm'!

Updated by duerst (Martin Dürst) almost 6 years ago

  • Category set to Joke

boris_stitnicky (Boris Stitnicky) wrote:

Yes, but one of those characters is 'm'!

Anything in particular that's problematic about 'm'? I have tentatively classified that as a joke, but can switch it back if needed.

Updated by ko1 (Koichi Sasada) almost 6 years ago

  • Assignee set to matz (Yukihiro Matsumoto)

Also available in: Atom PDF