C++ Logo

std-proposals

Advanced search

[std-proposals] ^^operator [was: Re: New draft proposal: Add "%s" (two-digit truncated-integer seconds) as a std::format conversion specifier for std::chrono time types.]

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Thu, 4 May 2023 09:35:39 +0200
  -----Ursprüngliche Nachricht----- Von:Simon Hill via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Mi 03.05.2023 17:21 Betreff:Re: [std-proposals] New draft proposal: Add "%s" (two-digit truncated-integer seconds) as a std::format conversion specifier for std::chrono time types. An:std-proposals_at_[hidden]; CC:Simon Hill <protogrammer_at_[hidden]>; But people learn that a single logical operator is bitwise, and a double logical operator is boolean. They then have to remember that ^ doesn't have a bitwise equivalent. ^ is already bitwise. You mean ^ has no logical equivalent? Some logical operators use doubled symbols, some not. && and || specifically stand for the short-circuit evaluation. Otherwise for consistency one would want to introduce !! instead of ! for logical NOT, which would lead to a lot of confusion and faulty programs.

Received on 2023-05-04 07:35:42