News for hackers. Stuff that matters.
Re:Python's new t-strings by hombre_fatal on Monday April 21, 2025 @01:51PM (#43754551)
Javascript already has prior art here.

A library can extend an existing database library like 'pg' so that PgClient#query() and PgPool#query() require string template statements.

That way 'pg' can continue working with strings, and people who want nice templated strings can use the small extension library, and the small extension library makes it impossible to accidentally pass strings into the query functions.

There are no comments on this comment yet.