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 <clemc@ccc.com> 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 <lm@mcvoy.com> 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