Re: [Rd] Documenting else's greed

2019-08-18 Thread Georgi Boshnakov
- Message: 6 Date: Fri, 16 Aug 2019 16:31:15 -0400 From: Duncan Murdoch To: Hugh Parsonage , R-devel Subject: Re: [Rd] Documenting else's greed Message-ID: Content-Type: text/plain; charset="utf-8"; Format="flowed" On 16/08/2019 12:36 p.m., Hugh Parsonage

Re: [Rd] Documenting else's greed

2019-08-16 Thread Duncan Murdoch
On 16/08/2019 12:36 p.m., Hugh Parsonage wrote: I was initially pretty shocked by the result in this question: https://stackoverflow.com/questions/57527434/when-do-i-need-parentheses-around-an-if-statement-to-control-the-sequence-of-a-f Briefly, the following returns 0, not 3 as might be

[Rd] Documenting else's greed

2019-08-16 Thread Hugh Parsonage
I was initially pretty shocked by the result in this question: https://stackoverflow.com/questions/57527434/when-do-i-need-parentheses-around-an-if-statement-to-control-the-sequence-of-a-f Briefly, the following returns 0, not 3 as might be expected: if (TRUE) { 0 } else { 2 } + 3 At