Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wredcoll
· 1y ago · 0 comments
Javascript added 'tagged templates' a while ago that allows you write a function that gets passed the 'parse tree' of a template string, so js libs do a lot of 'interpolation magic' for sql queries
Comments
[–]
ericvsmith
1y ago
And for a similar idea in Python see
https://peps.python.org/pep-0750/