From: Matthew Kerwin Date: 2015-10-23T09:39:02+10:00 Subject: [ruby-core:71168] Re: [Ruby trunk - Feature #9025] Clarify the error message when calling a method with the wrong number of arguments --001a1147956efb68280522b9ff49 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23 October 2015 at 07:51, wrote: > Issue #9025 has been updated by Martin D=C3=BCrst. > > Matthew Kerwin wrote: > > duerst (Martin D=C3=BCrst) wrote: > > > > Ruby is all about making it easier for the programmer. Even the > smallest amount of debugging is too much when it can be eliminated by > tweaking the error message. > > > > I think that statement accidentally reached a point of absurdity by > using a very precise definition of "debugging" that I don't share. > > It might have been clearer for me to write "Even the smallest reduction i= n > the amount of debugging is worth it when it can be achieved by tweaking t= he > error message." > > Anyway, if it doesn't make life easier for you, that's no problem. It > won't hurt you, and it will help others, even if you might not believe it= . > > That's true, and my position has mellowed in the past two years. At worst harmless*, at best an improvement. *Does anyone depend on the precise wording of this error message? I know it's an anti-pattern, but sometimes unavoidable, especially when dealing with these core exceptions that can't easily be modified to include programatically-retrievable data. --001a1147956efb68280522b9ff49 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 23 October 2015 at 07:51, <duerst@it.aoyama.ac.jp> wrote:
Issue #9025 has been updated by Martin D=C3=BCrst.=

Matthew Kerwin wrote:
> duerst (Martin D=C3=BCrst) wrote:

> > Ruby is all about making it easier for the programmer. Even the s= mallest amount of debugging is too much when it can be eliminated by tweaki= ng the error message.
>
> I think that statement accidentally reached a point of absurdity by us= ing a very precise definition of "debugging" that I don't sha= re.

It might have been clearer for me to write "Even the smallest r= eduction in the amount of debugging is worth it when it can be achieved by = tweaking the error message."

Anyway, if it doesn't make life easier for you, that's no problem. = It won't hurt you, and it will help others, even if you might not belie= ve it.

=C2=A0
That's true, and my position has mellowed in the past two years.= At worst harmless*, at best an improvement.

*Does anyone depend on the precise wording of this error message? I know= it's an anti-pattern, but sometimes unavoidable, especially when deali= ng with these core exceptions that can't easily be modified to include = programatically-retrievable data.

--001a1147956efb68280522b9ff49--