Re: [stack] QuoteAndEval
"Christopher Diggins" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
So IIUC applying the idea to a concatenative language like Cat: [is_weekend ["happy'] ["sad"] if] ` apply Will generate different code depending on the day of week it is compiled. Neat! - Christopher On Tue, May 13, 2008 at 4:35 PM, John Cowan <[email protected]> wrote: > > > > > Manfred Von Thun scripsit: > > > > The beauty of the various Unix utilities is that you can pipe the output > > of one to become the input to the next. The backquote substitution > > can make good use of it. > > Backquotes -- as is clearly shown by the alternative syntax $(...) -- > essentially belong to the lexical level of the shell, just like $name > substitution. So they are very like Lisp macros: code inside backquotes > runs in a subshell to produce *source code* which is then evaluated by > the main shell in context, just as a Lisp macro runs in an subordinate > evaluator to generate Lisp code to be run by the main evaluator in > context. > > -- > What has four pairs of pants, lives John Cowan > in Philadelphia, and it never rains http://www.ccil.org/~cowan > but it pours? [email protected] > --Rufus T. Firefly > > >