Slava Pestov <[EMAIL PROTECTED]> wrote:
> William Tanksley, Jr wrote:
> > Does Factor have reader-macros (to use the Lisp term)? Is there some
> > other way of getting this kind of thing done?
> We can write a parsing word to abstract it out:
> : S[ POSTPONE: [| \ with-locals \ call parsed ; parsing

That's reasonably elegant. It only lacks the single-gestalt clarity of
the lexer solution.

> I prefer traditional Forth shuffle words though. I find them easier
> to read and write than the 'pictorial' mnemonics. There are only a
> few shuffle words and they're easy to remember after a few weeks of
> writing code.

I understand this, but I think it's more complicated than just this.
When the need is for a 'dup' I'd rather use 'dup' than 'a--aa'; but
when the need is for a chain of stack shuffles, I'd far rather use
'abcd--dcdabacd' than spend the time thinking of the alternative.

(Yes, I concede that a horror like I just wrote is usually well
handled by refactoring. But as we all know, sometimes it isn't.)

> Slava

-Billy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to