Skip to content

sprintf function misbehaves with constant strings only #787

@yegor256

Description

@yegor256

I can write this:

tt.sprintf *1
  "%s %s"
  "hello"
  "world!"

We can complain about this code and suggest writing this instead:

"hello world!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersgood-titleThe title was checked and improved by ChatGPThelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions