From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23488 invoked from network); 4 Aug 2023 22:37:17 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 4 Aug 2023 22:37:17 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id AFEA0426C1; Sat, 5 Aug 2023 08:37:10 +1000 (AEST) Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by minnie.tuhs.org (Postfix) with ESMTPS id 4CD03426B0 for ; Sat, 5 Aug 2023 08:37:00 +1000 (AEST) Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-447684c4283so1079226137.2 for ; Fri, 04 Aug 2023 15:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691188619; x=1691793419; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AEKzIT5Yi87K5BxPkIeiHkvzEwSdyg/C0B9sMi+1f7M=; b=UpJPGId1Zf7scXby7BjexwHZ1bAyfdkrtPVpI7NjZ5icNkyOSIN/LwT/k09bvnDwNc Uqdy4ySXcliODbeQ1BRQgCX8kcQ/Hpe544VyTqf9IqjZWp7oYq1mIG44v0K8n/1jxoQO 6PXeIGiLqcYEPKA+a8rjH45K9maRmxMcqSgpxpCy71/0rlcBnatqYdFqbkMOJeBUY7uG GprN9bD3CG9wEQdYzHQzuemNqgNWQMMdFbCk02vi0bHHaO+d44fs8LU6+YN5mudzEJTN /8gcSFOa9m0NjKM944TCH5vQAPlbjAHpw5Mn1LBDPWXFC/HgJCI3age4HXxI4VUWMC29 +ZXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691188619; x=1691793419; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AEKzIT5Yi87K5BxPkIeiHkvzEwSdyg/C0B9sMi+1f7M=; b=GwRN5zrg225qsapJ4fq3Zd+rM+wGz0JxTCPfAmOdgjiU+LtAwvVaTIfrrurUyHsETq X5Huf4QJ5YigmlLWeaWU7nbDdebmB7wemCfYN+clTl1prY5k73bYqZq0on2cMRRSe6uC Opb1U0ijFqfHI8mqbep2Aqg8l12TnnULD+ncaN5a37dia9nkiPw0JzvK9JCrGFZ4L7JE VYFOZIkzZSexknsCucJ9WppHk0goCePeO75MgyIH/qL0vztWmZYsvuw0G9enOsGIaC0a y7ii+7yaKLf5nDv5VRTCNRcxxR7agZG628hDqfm7M4JLTq/M4q+H1B/+QIlOKycOCc7n Y/UQ== X-Gm-Message-State: AOJu0YyfOA2B/268HWnLUPYg9ELRuXdmoSB/JjT00ooSEZx1Mo0BmEEw n8IHIzkHwjzaojtruruZVtx0d9QJ7HA6HscsyNk= X-Google-Smtp-Source: AGHT+IGXqDWqsFASXMiCtPSPAEQgjkKWlaIGKY3BidB2U/7ilwRU5nkFlELF5AhaLJwBRKjfYZ1c4Vm0CD84WgNhFv0= X-Received: by 2002:a05:6102:34f7:b0:445:2154:746b with SMTP id bi23-20020a05610234f700b004452154746bmr2302537vsb.4.1691188619019; Fri, 04 Aug 2023 15:36:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Pike Date: Sat, 5 Aug 2023 08:36:48 +1000 Message-ID: To: Douglas McIlroy Content-Type: multipart/alternative; boundary="000000000000e28d3506022088a3" Message-ID-Hash: M3X7Q6KYB5ETD6NRLTQAMURMXSN2V5O2 X-Message-ID-Hash: M3X7Q6KYB5ETD6NRLTQAMURMXSN2V5O2 X-MailFrom: robpike@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: TUHS main list X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: python List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --000000000000e28d3506022088a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable And neither does go. fmt.Print(x) prints x, using its default format, which is not coincidentally available in Printf as %v. -rob On Sat, Aug 5, 2023 at 7:17=E2=80=AFAM Douglas McIlroy < douglas.mcilroy@dartmouth.edu> wrote: > > Most of the time I'd rather not have to care whether the thing > > I'm printing is a string, or a pointer, or an integer, or whatever: > > I just want to see its value. > > > Go has %v for exactly this. It's very nice for debugging. > > Why so verbose? In Basic, PRINT required no formatting directives at all. > > Doug > --000000000000e28d3506022088a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
And neither does go.
=C2=A0 =C2=A0fmt.Print(x)
prints x, using its de= fault format, which is not coincidentally available in Printf as %v.
<= div class=3D"gmail_default" style=3D"font-family:arial,sans-serif">
-rob<= /div>

On Sat, Aug 5, 2023 at 7:17=E2=80=AFAM Douglas McIlroy <douglas.mcilroy@dartmouth.edu= > wrote:
>= Most of the time I'd rather not have to care whether the thing
> I'm printing is a string, or a pointer, or an integer, or whatever= :
> I just want to see its value.

> Go has %v for exactly this.=C2=A0 It's very nice for debugging.
Why so verbose? In Basic, PRINT required no formatting directives at all.
Doug
--000000000000e28d3506022088a3--