Better HN
topnewbestaskshowjobs
Log inSign up

feraidoon

1 karma · joined Mar 3, 2023 (3y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

I had something like this implemented for safely executing shell commands, by using metaprogramming:

name="A$ron"

z("echo Hello {name}")

Note that this is not an f-string. The z function expands the variables by parsing this string and accessing its caller's local variables.

https://github.com/NightMachinery/brish

2.

Show HN: WriteGPT Expands Concise Plotlines into Detailed Stories(files.lilf.ir ↗)

1 points · by feraidoon · 3y ago · discuss