From: Felipe Contreras <felipe.contreras@gmail.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Duy Nguyen <pclouds@gmail.com>
Subject: Re: [PATCH v5 01/15] Add new git-related helper to contrib
Date: Sun, 19 May 2013 10:41:57 -0500 [thread overview]
Message-ID: <CAMP44s3idD9pen0PyFuHeXQ=uphA8gVfFCEYhEnDRsx-gszbAw@mail.gmail.com> (raw)
In-Reply-To: <CALkWK0kz-pQ9UJPXerFoui9ftNXDzD-xhpkSHY=JX3rbFXgp-g@mail.gmail.com>
On Sun, May 19, 2013 at 10:13 AM, Ramkumar Ramachandra
<artagnon@gmail.com> wrote:
> Felipe Contreras wrote:
>> How exactly is it not equivalent to len = len || 1?
>
> Here, I dug up an article for you on the issue:
>
> http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html
>
> Although it's fine in this case, I wouldn't recommend using ||=
> because of the potential confusion.
I don't see the confusion, 'len ||= 1' is *exactly* the same as 'len =
1 if not len', which is what I expected.
--
Felipe Contreras
next prev parent reply other threads:[~2013-05-19 15:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-18 11:46 [PATCH v5 00/15] New git-related helper Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 01/15] Add new git-related helper to contrib Felipe Contreras
2013-05-18 11:55 ` Felipe Contreras
2013-05-19 7:42 ` Junio C Hamano
2013-05-19 8:29 ` Felipe Contreras
2013-05-19 14:40 ` Ramkumar Ramachandra
2013-05-19 15:05 ` Felipe Contreras
2013-05-19 15:13 ` Ramkumar Ramachandra
2013-05-19 15:41 ` Felipe Contreras [this message]
2013-05-19 21:14 ` David Aguilar
2013-05-19 15:15 ` Ramkumar Ramachandra
2013-05-19 15:17 ` Ramkumar Ramachandra
2013-05-19 15:45 ` Felipe Contreras
2013-05-19 15:48 ` Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 02/15] contrib: related: add option parsing Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 03/15] contrib: related: sort by amount of involvement Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 04/15] contrib: related: print the " Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 05/15] contrib: related: add helper Person classes Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 06/15] contrib: related: show role count Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 07/15] contrib: related: add support for more roles Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 08/15] contrib: related: group persons with same email Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 09/15] contrib: related: add mailmap support Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 10/15] contrib: related: allow usage on other directories Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 11/15] contrib: related: add support for multiple patches Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 12/15] contrib: related: add option to show commits Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 13/15] contrib: related: add option to parse from committish Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 14/15] contrib: related: parse committish like format-patch Felipe Contreras
2013-05-18 11:46 ` [PATCH v5 15/15] contrib: related: fix parsing of rev-list args Felipe Contreras
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='CAMP44s3idD9pen0PyFuHeXQ=uphA8gVfFCEYhEnDRsx-gszbAw@mail.gmail.com' \
--to=felipe.contreras@gmail.com \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@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).