Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Bernd Paysan Newsgroups: comp.lang.forth Subject: Re: Went open source with my GA144 simulator written in Factor Date: Mon, 29 Apr 2013 21:07:10 +0200 Organization: 1&1 Internet AG Lines: 41 Message-ID: References: <1cd5dbe8-f8c0-48c5-b673-2a12d7b776bd@googlegroups.com> <93974620-b0ac-481f-a659-3547f8921282@w1g2000vbw.googlegroups.com> <1cfe84c3-97aa-4f17-bdd3-db2a4cd8b631@a34g2000vbt.googlegroups.com> <_tadnVKPhZq9_eTMnZ2dnUVZ_gCdnZ2d@supernews.com> <3-mdndGBcPy2XOfMnZ2dnUVZ_j6dnZ2d@supernews.com> <517adbd7$0$32117$14726298@news.sunsite.dk> <517cf82e$0$32117$14726298@news.sunsite.dk> <517e4adf$0$32110$14726298@news.sunsite.dk> NNTP-Posting-Host: p5dcd6551.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: online.de 1367262431 11676 93.205.101.81 (29 Apr 2013 19:07:11 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Mon, 29 Apr 2013 19:07:11 +0000 (UTC) User-Agent: KNode/4.10.2 Xref: csiph.com comp.lang.forth:22035 Doug Hoffman wrote: > On 4/28/13 9:41 AM, Bernd Paysan wrote: > >> It is also very common that >> when you interact with a particular object, you'll be sending more than >> one >> message to it. You don't say "thing print", you more likely say "thing >> initialize thing populate thing manipulate thing print". Or >> >> thing >o initialize populated manipulate print o> > > You replaced 8 tokens with 7. Doesn't seem like a big deal. Some tokens have a "lighter" brain representation. Like groupers. >o o> are groupers. They help you to understand the structure of the things you do. And you can cut&paste factor, e.g. : input initialize populate manipulate ; thing >o input print o> Without any stack juggling to get this done (there is quite likely enough stack juggling for populate and manipulate). > OK, I believe I better understand why you use >o and o>. It's > apparently a syntax preference thing. Thanks for the explanation. This is still a trivial example where there are no other stack effects apart from the object itself. That's not the normal case. In any case, this is semantics. The syntax of all these things is just space-separated words. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/