t {if (cond) {0} else {2}} + 2."
------
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=
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 expecte
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 fir