Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foobahify
26 days ago
|
parent
|
context
|
favorite
| on:
PEP 750 – Template Strings
The issue was solved by having a rich and Turing complete language. I am not huge on adding language features. This seems like userland stuff.
actinium226
26 days ago
[–]
I tend to agree. I think it's easy enough to use a lambda in this case
>>> template = lambda name: f'Hello {name}' >>> template('Bob')
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: