Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


And for a similar idea in Python see https://peps.python.org/pep-0750/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: