RE: [stack] Syntax for combinators
James Hague <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
>When writing Joy programs with combinators, in about 95% of cases I seem to >push the quotation parameters just before the combinator. Using the ifte >combinator, a piece of program would look like this: > >[if-part] [then-part] [else-part] ifte > >The ifte combinator immediately removes the three quotations, and all other >combinators do the same. Could one have a different notation? The Forth-like notation you suggest is a step-backwards. This is coming from someone who has written a lot of Forth :) I would like to see [if-part] replaced with a simple Boolean flag. Is there a reason it needs to be a quotation? I believe it's a Boolean in Factor. James