Advertisement · 728 × 90
#
Hashtag
#syntacticSugar
Advertisement · 728 × 90
Fake code example that shows print(f"") vs. printf("").

Fake code example that shows print(f"") vs. printf("").

🐍 Hey pythonistas,

I wonder: Is it possible to create a function such as “printf('…')” that behaves as if it were “print()” called with an f-string?

/cc @mathspp.com

📣 #programming, #Python, #syntacticSugar

1 0 1 0

HA! I'm looking at benefits of coding with more #syntacticsugar when #pairedprogramming with #AI, and ChatGPT said: "If an AI is advanced enough, it may prefer more sugar: it can compress code more elegantly and make transformations more fluidly, just like how humans prefer speaking in idioms."

1 0 1 0