<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Thanks Larry. I've found printf a jump in usability among the</div><div class="gmail_default" style="font-family:monospace,monospace">languages I've used (FORTRAN, Visual Basic, Java, PHP and a few more). Python3's</div><div class="gmail_default" style="font-family:monospace,monospace">f-strings are a major readability/suportability advance over printf. There</div><div class="gmail_default" style="font-family:monospace,monospace">is nothing I know of as usable, readable, and supportable.</div><div class="gmail_default" style="font-family:monospace,monospace">I have yet to find anything I can't do</div><div class="gmail_default" style="font-family:monospace,monospace">with f-strings than I could with printf.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">There must be some one who has pros and cons of f-strings on this list?</div><div class="gmail_default" style="font-family:monospace,monospace">I would like to hear thoughts.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Ed</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 4, 2023 at 2:47 PM Larry McVoy <<a href="mailto:lm@mcvoy.com">lm@mcvoy.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We did something sort of like that in Little, all double quoted strings<br>
look for ${anything} in the string and evaluates it and prints. Like<br>
fstrings, you can do puts("Print 5 + 7 = ${5 + 7}"); <br>
<br>
We used single quoted strings as pure strings.<br>
<br>
It's handy and sometimes more readable than printf.<br>
<br>
<a href="http://www.little-lang.org/little.html#String_interpolation" rel="noreferrer" target="_blank">http://www.little-lang.org/little.html#String_interpolation</a><br>
<br>
On Fri, Aug 04, 2023 at 02:20:06PM -0500, Ed Bradford wrote:<br>
> To all:<br>
> <br>
> Python 3's fstrings<br>
> <a href="https://realpython.com/python-f-strings/" rel="noreferrer" target="_blank">https://realpython.com/python-f-strings/</a><br>
> seem to me to be a huge improvement over printf<br>
> and its close relatives.<br>
> <br>
> What are people's views about the pro's and con's and<br>
> how do print and strings compare in usability?<br>
> <br>
> Ed<br>
> <br>
> <br>
> On Wed, Aug 2, 2023 at 9:07???PM Clem Cole <<a href="mailto:clemc@ccc.com" target="_blank">clemc@ccc.com</a>> wrote:<br>
> <br>
> > IMO (Like Larry) no printf stinks. But the real killer for my sustain for<br>
> > Python is the use white space and being typeless. My daughter loves it<br>
> > for her cloud development and we argue a bit. But it was the first<br>
> > language she really mastered in college and she never took a competitive<br>
> > languages course so I???m not so sure really had experienced much beyond it<br>
> > for real programs. Maybe I???m just an old fart but between C, Go and Rust<br>
> > I???m pretty good. I do write scripts in Bourne shell and or awk truth be<br>
> > known.<br>
> ><br>
> > On Wed, Aug 2, 2023 at 8:51 PM Larry McVoy <<a href="mailto:lm@mcvoy.com" target="_blank">lm@mcvoy.com</a>> wrote:<br>
> ><br>
> >> On Wed, Aug 02, 2023 at 07:49:18PM -0400, Rich Salz wrote:<br>
> >> > > [Python is] meant for mainly functional programming as I understand it<br>
> >> ><br>
> >> > Not true. It has some neat functional features (list comprehensions) but<br>
> >> > that's not really its intent.<br>
> >><br>
> >> I've really tried to like python but any language that doesn't has printf<br>
> >> as builtin is not for me. Yes, I know about their library printf but it<br>
> >> is weird.<br>
> >> --<br>
> >> ---<br>
> >> Larry McVoy Retired to fishing<br>
> >> <a href="http://www.mcvoy.com/lm/boat" rel="noreferrer" target="_blank">http://www.mcvoy.com/lm/boat</a><br>
> >><br>
> > --<br>
> > Sent from a handheld expect more typos than usual<br>
> ><br>
> <br>
> <br>
> -- <br>
> Advice is judged by results, not by intentions.<br>
> Cicero<br>
<br>
-- <br>
---<br>
Larry McVoy Retired to fishing <a href="http://www.mcvoy.com/lm/boat" rel="noreferrer" target="_blank">http://www.mcvoy.com/lm/boat</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><font face="'courier new', monospace"><span style="font-weight:900"><div>Advice is judged by results, not by intentions.</div><div> Cicero</div></span></font><div><br></div></div>