On Thu, Aug 03, 2023 at 12:57:31PM -0400, Phil Budne
wrote:
On the subject of "no printf", there is
not one, not two, but THREE
ways to format strings, easily compounded with print:
print("%s %s" % ("hello", "world"))
print("{1} {two}".format("hello", two="world"))
print(f"{greeting} {populace}")
I'm pretty sure the last method (which initially made me vomit, due to
All of
those make me vomit. Pretty much every sane language has printf.
Tell us how you
really feel :). But, I couldn't agree more. I worked
really hard to get printf and sprintf down and then folks started doing
it "right" and "better" or renaming it but watering it down - ugh! I
say, we picket.