From: Jonathan Nieder <jrnieder@gmail.com>
To: Thiago Farina <tfransosi@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] commit: Append commit_list prefix in two function names.
Date: Sat, 27 Nov 2010 02:29:33 -0600 [thread overview]
Message-ID: <20101127082933.GA24840@burratino> (raw)
In-Reply-To: <AANLkTi=V7e-KFhKVDLjH4TvoT6U3xmFieo5uqigPhqKF@mail.gmail.com>
Thiago Farina wrote:
> On Sun, Nov 14, 2010 at 7:19 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> This gives the oft-used insert_by_name() function a fairly long name:
>>
>> commit_list_insert_by_name
>>
>> The proposed name is long enough to be unwieldly. It might have
>> the virtue of fitting better with some of the commit_list lib:
>>
>> commit_list_count
>> commit_list_insert
>> free_commit_list
>>
>> Compare:
>>
>> sort_by_date
>> pop_most_recent_commit
>> sort_in_topological_order
>> pop_commit
>>
>
> I don't understand what you are arguing here. Is about the size of
> "commit_list_insert_by_name"? I don't care about it's size,
For code clarity, length of function names can matter...
> I just
> want to make it consistent by adding commit_list in the functions that
> are part of the commit_list API.
... though this consideration is probably more important.
>> Perhaps this change would work better if some of the others were
>> renamed at the same time?
>
> I don't think so, this would increasing the size of the change and
> make it less readable.
Even if split up into multiple patches? I don't think it makes much
sense to say "functions in the commit_list API all start with
commit_list_" while at the same time leaving half of the functions in
the commit_list API without that suffix.
By the way, how did this come up? Presumably some particular code
was confusing? If so, that information could be useful as an example
in the log message.
Regards,
Jonathan
next prev parent reply other threads:[~2010-11-27 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 21:03 [PATCH] commit: Append commit_list prefix in two function names Thiago Farina
2010-11-14 21:19 ` Jonathan Nieder
2010-11-27 1:54 ` Thiago Farina
2010-11-27 8:29 ` Jonathan Nieder [this message]
2010-11-29 0:05 ` Thiago Farina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101127082933.GA24840@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=tfransosi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).