From: matz@... Date: 2016-08-09T14:36:27+00:00 Subject: [ruby-core:76793] [Ruby trunk Feature#12626][Rejected] Add ceiling alias for ceil on Numeric objects Issue #12626 has been updated by Yukihiro Matsumoto. Status changed from Open to Rejected Having both `ceil` (backed by UNIX tradition) and `ceiling` (better for English natives? dunno) only introduces confusion. Is there any other buying point for `ceiling`? Matz. ---------------------------------------- Feature #12626: Add ceiling alias for ceil on Numeric objects https://bugs.ruby-lang.org/issues/12626#change-60016 * Author: Jason Willems * Status: Rejected * Priority: Normal * Assignee: ---------------------------------------- Proposing adding a `ceiling` alias to the `ceil` instance method for Numeric, Float, Integer. Although `ceil` is familiar as it's an extremely common method name in other languages, `ceiling` is more readable. Several other methods exist in the standard library with aliased long and short forms. A few examples: **Numeric**: [:imaginary, :imag] [:rectangular, :rect] [:to_i, :to_int] [:conjugate, :conj] **String**: [:to_str, :to_s] Usage: ```ruby > 2.71.ceil => 3 > 2.71.ceiling => 3 ``` ```ruby > Fixnum.instance_methods.grep /ceil/ => [:ceil, :ceiling] ``` ---Files-------------------------------- add_ceiling_alias.patch (4.47 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: