Re: [stack] QuoteAndEval

"William Tanksley, Jr" <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
Manfred Von Thun <[email protected]> wrote:
> Still on the topic of quote and eval, it occurred to me that the Unix
>  command
>  languages (sh, csh, ksh, bash,..) have their own eval operator. It is the
>  backquote mechanism, which will evaluate what is enclosed inside the
>  backquotes `...` (I don¹t know what my mailer will do to it, it is the key
>  just under escape key at the top left).

>  Is there a lesson to be learned for concatenative languages?

I don't know what the lesson would be. Backquotes escape from a string
context to an executation/evaluation context. I suppose one could do
that in a concatenative language that had a string syntax.

More generally, I suppose one could "escape" from any context to an
evaluation, thus allowing you to compute a value at runtime which will
be compiled into the current quotation.

>   - Manfred

-Wm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.