From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: tuhs-bounces@minnie.tuhs.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_FONT_LOW_CONTRAST, HTML_IMAGE_ONLY_20,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ce2fc152 for ; Wed, 31 Oct 2018 15:19:18 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 87AD8A230E; Thu, 1 Nov 2018 01:19:17 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 1DB43A2152; Thu, 1 Nov 2018 01:18:42 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 6B481A215A; Wed, 31 Oct 2018 23:50:03 +1000 (AEST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by minnie.tuhs.org (Postfix) with ESMTPS id D3683A2152 for ; Wed, 31 Oct 2018 23:49:57 +1000 (AEST) Received: by mail-wm1-f53.google.com with SMTP id r63-v6so15232277wma.4 for ; Wed, 31 Oct 2018 06:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G827F64UjsCyR5ucaIKzr8Gv1XmercsaG6XubNoRODY=; b=k5n1DYuHwQEAEVWBLGsrAHkMzlDP/m1pgFXjzuw5ogw++HGg1eW1+KeVqpFo1Vu+zV dI1yECza7hs1U8Z2kRoLBqxb3V4ohebEdH0EJvFBBKQZgXGY5gauFtmiwjRl4Amu4iYY 46vTlLkqBHWTaBYyr0h9GFv8Kt2a/U35+yOHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G827F64UjsCyR5ucaIKzr8Gv1XmercsaG6XubNoRODY=; b=sl7eLYdkLcxK+d40OdvW3EK9Jm8ihUlTUtLqE6JqK9XeGMjTdr6FtmlOEk8wMyais5 jHZqLe1HdO+Q1J5uzykX3YBNDwGINZcvBtg2ciMy/RjyL2byR89INX5wZf8T84+9ckoy hEHtWUYt3uYZGD4dTAGvpiL4rE4Fqt53admyTSL/G96Zw8gBVs7UJ1cBITB+TdX9/srN 2qKfhO1pUlMv9nrvs0LHXfRJRo1IhVs8APoEqdZEoxgIwJzWCSO5/xYwVvCV2u5x0UwY CvMs7hfhfIDws1A7XF0DKu6D+8F8qxBl3pDYAWR3M6FVU7O4bn+vugm9KpW3Gk72CzfU tT/Q== X-Gm-Message-State: AGRZ1gKH++EkrZpBsuj6xXjr0HblWV4l8vPV3hq9liuO3DUrSjvfwm4G 2Yl3V3nMmfPG5NOOk9HMOO1JAWBVxOqzh6ES6Q65zA== X-Google-Smtp-Source: AJdET5d2ZrhiilHEnpdOEbjz6vID1HLPS1ebFnNc+3U6bhM41rWBmJiqUoihdhdD1eRhyhpjMDauG3hz66NhYpn7/W0= X-Received: by 2002:a1c:32ca:: with SMTP id y193-v6mr2420158wmy.29.1540993796218; Wed, 31 Oct 2018 06:49:56 -0700 (PDT) MIME-Version: 1.0 References: <5DB0D670-6B65-4558-9CCE-7F80FE5B62BA@kdbarto.org> <20181031005800.GA5670@mcvoy.com> In-Reply-To: <20181031005800.GA5670@mcvoy.com> From: Clem Cole Date: Wed, 31 Oct 2018 09:49:29 -0400 Message-ID: To: Larry McVoy Content-Type: multipart/alternative; boundary="000000000000d33c0205798693a1" Subject: Re: [TUHS] Archaic yacc C grammar X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000d33c0205798693a1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 30, 2018 at 9:46 PM Larry McVoy wrote: > Instead of > > p->size > > we have > > p->st_size > > and I instantly know that p is a struct stat pointer. > +1 Amen Larry. I understand why people had a desire for different namespaces, but a single namespace sure made code a lot more readable and understandable. I still use that trick in new code, because I think it just makes it easier to identify what is going on when I glance at it. Clem =E1=90=A7 --000000000000d33c0205798693a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Oct 30, 2018 at 9:46 PM Larry McVoy <lm@mcvoy.com> wrote:
Instead of

=C2=A0 =C2=A0 =C2=A0 =C2=A0 p->size

we have

=C2=A0 =C2=A0 =C2=A0 =C2=A0 p->st_size

and I instantly know that p is a struct stat pointer.=C2=A0
+1
Amen Larry.=C2=A0 =C2=A0I understand why people h= ad a desire for different namespaces, but a single namespace sure made code a lot= more readable and understandable.
I still use that tr= ick in new code, because I think it just makes it easier to identify what i= s going on when I glance at it.

= Clem
=C2=A0
3D""=E1=90=A7
--000000000000d33c0205798693a1--