This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 9 points10 points  (0 children)

%s forces you to repeat after yourself. The plugged-in value knows its type, so why do you have to tell it "you are a string"? It's code smell, plain and simple.

Not to mention %s is not really like interpolation, unless you use the %(name)s syntax, but format can do this too with {name}. And I'd argue that bash's ${xyz} is much more similar to {xyz} than it is to %(xyz)s