Y
Hacker News
new
|
ask
|
show
|
jobs
by
pornel
1616 days ago
Perhaps something could be done with compile-time code execution, but the bigger problem is that it wouldn't be backwards-compatible. Currently "{foo}" is a perfectly valid string that doesn't evaluate anything.
1 comments
hajile
1616 days ago
In truth, it probably requires something like `f"foo {bar}"`
link