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=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18729 invoked from network); 4 Aug 2023 19:47:23 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 4 Aug 2023 19:47:23 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id E6C29424E8; Sat, 5 Aug 2023 05:47:18 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id 53078424E1 for ; Sat, 5 Aug 2023 05:47:07 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id E578535E926; Fri, 4 Aug 2023 12:47:06 -0700 (PDT) Date: Fri, 4 Aug 2023 12:47:06 -0700 From: Larry McVoy To: Ed Bradford Message-ID: <20230804194706.GJ24315@mcvoy.com> References: <8246.1690761540@cesium.clock.org> <29602.1690887524@cesium.clock.org> <20230803005106.GA12652@mcvoy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Message-ID-Hash: LHTWRF2552MUHFD6ZS2RI4HZSXAFTTYI X-Message-ID-Hash: LHTWRF2552MUHFD6ZS2RI4HZSXAFTTYI X-MailFrom: lm@mcvoy.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: Grant Taylor , segaloco , tuhs@tuhs.org 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: We did something sort of like that in Little, all double quoted strings look for ${anything} in the string and evaluates it and prints. Like fstrings, you can do puts("Print 5 + 7 = ${5 + 7}"); We used single quoted strings as pure strings. It's handy and sometimes more readable than printf. http://www.little-lang.org/little.html#String_interpolation On Fri, Aug 04, 2023 at 02:20:06PM -0500, Ed Bradford wrote: > To all: > > Python 3's fstrings > https://realpython.com/python-f-strings/ > seem to me to be a huge improvement over printf > and its close relatives. > > What are people's views about the pro's and con's and > how do print and strings compare in usability? > > Ed > > > On Wed, Aug 2, 2023 at 9:07???PM Clem Cole wrote: > > > IMO (Like Larry) no printf stinks. But the real killer for my sustain for > > Python is the use white space and being typeless. My daughter loves it > > for her cloud development and we argue a bit. But it was the first > > language she really mastered in college and she never took a competitive > > languages course so I???m not so sure really had experienced much beyond it > > for real programs. Maybe I???m just an old fart but between C, Go and Rust > > I???m pretty good. I do write scripts in Bourne shell and or awk truth be > > known. > > > > On Wed, Aug 2, 2023 at 8:51 PM Larry McVoy wrote: > > > >> On Wed, Aug 02, 2023 at 07:49:18PM -0400, Rich Salz wrote: > >> > > [Python is] meant for mainly functional programming as I understand it > >> > > >> > Not true. It has some neat functional features (list comprehensions) but > >> > that's not really its intent. > >> > >> I've really tried to like python but any language that doesn't has printf > >> as builtin is not for me. Yes, I know about their library printf but it > >> is weird. > >> -- > >> --- > >> Larry McVoy Retired to fishing > >> http://www.mcvoy.com/lm/boat > >> > > -- > > Sent from a handheld expect more typos than usual > > > > > -- > Advice is judged by results, not by intentions. > Cicero -- --- Larry McVoy Retired to fishing http://www.mcvoy.com/lm/boat