Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pseudony
· 2y ago · 0 comments
Wrote something similar, but while you can mix generated and hand-written code, the actual python code for that is moved out of the file.
https://jwdevantier.github.io/gcgen/
Comments
[–]
rjeli
2y ago
this looks nice, but I feel like mixing the python into the source is actually the reason I like cog so much. It feels weird at first, but having it all inline and checking it in together is simpler to work with IMO