Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #27407 > unrolled thread

Quotation tokens

Started by"Alex McDonald" <blog@rivadpm.com>
First post2013-12-23 20:36 +0000
Last post2013-12-23 22:44 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.forth


Contents

  Quotation tokens "Alex McDonald" <blog@rivadpm.com> - 2013-12-23 20:36 +0000
    Re: Quotation tokens Bernd Paysan <bernd.paysan@gmx.de> - 2013-12-23 22:44 +0100

#27407 — Quotation tokens

From"Alex McDonald" <blog@rivadpm.com>
Date2013-12-23 20:36 +0000
SubjectQuotation tokens
Message-ID<l9a6rl$mcj$1@dont-email.me>
Before we get all formal...

There's a general consensus on[: and ;] as the unnamed equivalent of
:noname ; . I'd prefer [' and '] as the inline unnamed equivalent of [']
<name>.

These tokens also more clearly not {: and :}.

: bar {: a b :} [: a b + ;] foo ;
: flop {: c :} [: c ;] flip ;

: bar {: a b :} [' a b + '] foo ;
: flop {: c :} [' c '] flip ;

And quotations use a quote too.

[toc] | [next] | [standalone]


#27408

FromBernd Paysan <bernd.paysan@gmx.de>
Date2013-12-23 22:44 +0100
Message-ID<l9aarp$6u5$1@online.de>
In reply to#27407
Alex McDonald wrote:

> Before we get all formal...
> 
> There's a general consensus on[: and ;] as the unnamed equivalent of
> :noname ; . I'd prefer [' and '] as the inline unnamed equivalent of [']
> <name>.
> 
> These tokens also more clearly not {: and :}.

We would have taken { and } for locals (and probably will continue to use 
them), but somebode used { and } for some sort of comments or so, and 
objected violently...

> : bar {: a b :} [: a b + ;] foo ;
> : flop {: c :} [: c ;] flip ;
> 
> : bar {: a b :} [' a b + '] foo ;
> : flop {: c :} [' c '] flip ;
> 
> And quotations use a quote too.

Point taken.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.forth


csiph-web