Open hiiamboris opened 1 year ago
Nice idea.
Naming is tricky here. I've suggested lit
as a new name for quote
in the past, because quote
is simply a carryover name from Lisp, and lit
(while not a full word), matches how we think of "literal" in Red. What you're talking about is not a literal value, but a reference that also treats the value literally. That matches parse
's implicit composition, but might be confusing.
If get-words didn't have such a different meaning in parse
. We might use :quote
as a keyword.
Rationale - untangle cases where excess of smarts requires ugly workarounds:
How it could have been written:
Proposed semantics:
lit only word!
- fetches word value and passes it toquote
branchlit word!
- for non-blocks works aslit only
, for blocks matches every value in the block as if it was quoted:[quote a quote 1 quote 2]