Re: [RFC v2 1/1] refspec: add support for negative refspecs
- From
Jacob Keller <jacob.keller@gmail.com>
- Date
- Aug 24, 2020, 19:26 UTC
- Message-ID
- <CA+P7+xp_ajhC_vN0jLY6AVS+cSgLNK5SeybxSwoT16ripUdqkw@mail.gmail.com>
- In-Reply-To
- <xmqqk0xo53pi.fsf@gitster.c.googlers.com>
On Mon, Aug 24, 2020 at 10:55 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > > The `?:` operator is not supported e.g. by Visual C. Let's not use it. > > Thanks. IIRC that was GNU extension? >
Yea, probably.
From wikipedia, [1], "In GNU C and C++ (that is: in C and C++ with GCC extensions), the second operand of the ternary operator is optional. This has been the case since at least GCC 2.95.3 (March 2001), and seems to the original elvis operator."
Thanks, Jake
[1] https://en.wikipedia.org/wiki/Elvis_operator