Slava Pestov <[EMAIL PROTECTED]> wrote: > William Tanksley, Jr wrote: >> 1. Nice! I'm glad to see that Factor can do shuffles. I had thought it >> was impossible.
> It has been possible for a while using locals. > [| a b c | c a b a c ] call There's a huge difference between shuffles (which are countable and always terminate) and quotations with locals (which are Turing-complete). Both have their places, but let me put it this way: if you were writing phrases like "-roll 3drop" in your code, would you rather code that as "s[abcd--d]" or "[|a b c d| d] call"? The former can be read as a single gestalt; the latter has to be mentally checked to make sure it's not executing anything. Of course, ideally the language will need no shuffles, and I give credit to Factor for being ahead of any other concatenative language in that respect. I _love_ what you've come up with there (although I find the cleave,etc. nomenclature very difficult to read). Dan: yes, I've seen the extra/shuffles library. If it's the same one I saw before, that's why I didn't think Factor supported shuffles, because rather than tapping into the parser, you have to define all possible names for shuffles. > Slava -Wm ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk