Firstly, I believe that this particular case in if statements is the most common, so it’s my main focus; secondly, the ‘if not’ construct already exists and is widely used elsewhere, making it more readily acceptable. Therefore, the proposal will focus exclusively on if statements rather than loop statements.
From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> on behalf of Sebastian Wittmeier via Std-Proposals <std-proposals@lists.isocpp.org>
Sent: Sunday, April 21, 2024 1:18
To: std-proposals@lists.isocpp.org <std-proposals@lists.isocpp.org>
Cc: Sebastian Wittmeier <wittmeier@projectalpha.org>
Subject: Re: [std-proposals] if !(condition)I would expect a comment about "while" and "do while" (and possibly "for").
Would you propose adding ! there, too, oppose it, leave it neutrally open, invite anybody to write a paper or want to see, how if !() works out? Or is it not possible there?
-------Ursprüngliche Nachricht-----
Von: Yexuan Xiao via Std-Proposals <std-proposals@lists.isocpp.org>
Gesendet: Sa 20.04.2024 18:09
Betreff: [std-proposals] if !(condition)
An: std-proposals@lists.isocpp.org <Std-Proposals@lists.isocpp.org>;
CC: Yexuan Xiao <bizwen@nykz.org>;I've wrote a proposal that suggests allowing the omission of the outermost parentheses to simplify the conditions in if statements:Please share your comments.-- Std-Proposals mailing list Std-Proposals@lists.isocpp.org https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals