Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: this girl calls c ugly
Date: Sun, 31 May 2026 16:08:04 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <86ldczdvor.fsf@linuxsc.com>
References: <10v7b32$2u85v$1@dont-email.me> <10vcqjc$con8$1@dont-email.me> <10vcui4$buur$3@kst.eternal-september.org> <10vd1tu$ekvl$1@dont-email.me> <10vel6r$l1g$1@reader1.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Sun, 31 May 2026 23:08:05 +0000 (UTC)
Injection-Info: dont-email.me; logging-data="1957566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h6v1hJH3rbMAo79XoycwGUFAbQlIHLBU="; posting-host="7f8da0c1566d3f9ff33b7bc265315aa3"
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:4XHRnSVFtm9+/PVIowCNuw24sbU= sha1:AyqYbWsoI35lldwoe1Ol6iQxc3o= sha256:kDlje3cE+1FoRxPgG9H3CLoOMRm9cqAbSA4n0RNNIxk= sha1:MciR9vWb0fOetsqeEEW8oONFsYU=
Xref: csiph.com comp.lang.c:399570
cross@spitfire.i.gajendra.net (Dan Cross) writes:
> In [...] early C, `|` and `&` were logical operators. The
> short-circuiting `||` and `&&` came later, but the usage low
> precedence for `|` and `&` was already baked in.
>
> That's the point: the precedence reflects the original use as
> boolean operators, not how things evolved for use almost purely
> as bitwise operators.
Surely even in pre-K&R C the & and | operators were used for
bitwise-and and bitwise-or as well as logical connectors.