Quasistring and string interpolation #307
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
quasistringand string interpolation have been discussed on IRC. The following is an implementation forquasistringbased on parsing a string (during macro expansion) for template variables and capturing lexical scope:(see https://gist.github.com/belmarca/e79685b751950920f5da00461d3d8818).
Some issues have been raised by @drewc and I think this warrants a GitHub issue for further discussion.
So, for quasistring we want it in
:std/misc/text; we probably also want to haveinclude-text(orinclude-quasistring) for template inclusion from a file.OK so
quasistringcaptures lexical scope, but we might need to allow to pass it an expression that builds a string. This worksbut this doesn't
.
See https://github.com/vyzo/gerbil/pull/373 for more discussion and implementation.
We have
:std/misc/templatenow, so we are mostly there. I don't think we need quasistring, templates give us 90% of what we need.@belmarca thoughts?