[TUHS] What would early alternatives to C have been?

Larry McVoy lm at mcvoy.com
Tue Mar 11 01:06:11 AEST 2025


On Mon, Mar 10, 2025 at 10:52:20AM -0400, Clem Cole wrote:
> On Mon, Mar 10, 2025 at 10:41???AM Larry McVoy <lm at mcvoy.com> wrote:
> 
> > On Mon, Mar 10, 2025 at 03:12:06AM -0600, arnold at skeeve.com wrote:
> > > I think, as in all things, "always use parentheses" can be carried
> > > too far.  I find
> > >
> > >       if (a == b && c == d)
> > >
> > > perfectly reasonable, but
> > >
> > >       if ((a == b) && (c == d))
> > >
> > > to be just silly.
> >
> > Color me silly then.
> 
> Me too.
> 
> > My eyes parse the "silly" form faster.
> 
> Exactly.
> 
> > And I was the boss so my eyes won.  Over time, everyone at my shop came
> > to agree with me.
> > One mans silly is another mans faster reading.
> >
> The problem is that in the first form, you have to slow down to ensure you
> have the order correctly,  Maybe it's my dyslexia speaking, but the "extra"
> parens make it clear without having to slow down.

Exactly.  It's not that Clem and I are stupid, we aren't.  It's that we
want to use our brains to work on stuff that is actually hard.  Making 
us spend effort on "silly" stuff is just rude, just don't do that.  You
are entitled to your opinion for sure, but you are less entitled when
that opinion creates pointless work for other people.


More information about the TUHS mailing list