[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Object constructor should be renamed
From: Robert Klemme <shortcutter () googlemail ! com>
Date: 2018-08-20 14:25:17
Message-ID: CAM9pMnOxmt9n6hwWdVOuK0RcOKaPQ-b_h-vif1kzgxcxQaAM_g () mail ! gmail ! com
[Download RAW message or body]
On Mon, Aug 20, 2018 at 9:23 AM Andy Jones <Andy.Jones@jameshall.co.uk> wrote:
>
> If we had the language to do over again I would prefer "init" since (a) here in the \
> UK we don't spell that word with a Z and (b) I seem incapable of typing it \
> correctly, and when I misspell it, it's sometimes hard to debug. ("Why is the \
> initialise method not being ... Oh.")
> But of course we don't have the language to do over again, and renaming it is not a \
> thing we can do.
Even if renaming was possible, reusing a method name that is used in a
similar context but with different functionality would only cause
confusion as others have pointed out already.
Cheers
robert
--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic