Deutsch   English   Français   Italiano  
<vg2qt3$39is5$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Anthony Howe <achowe@snert.com>
Newsgroups: comp.lang.forth
Subject: Re: Toad using many vocabularies
Date: Fri, 1 Nov 2024 11:08:20 -0400
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <vg2qt3$39is5$1@dont-email.me>
References: <vg06r0$2o75r$1@dont-email.me>
 <a5fde3a7ae2cc7eaef371eebfdb814f6@www.novabbs.com>
 <vg2g8q$380c9$1@dont-email.me> <vg2oho$33mjv$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 01 Nov 2024 16:08:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6bb1ef6bb18d026bf61c7eee4edbe40a";
	logging-data="3459973"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+C/aPr9OQXNj3KFnMttR/D"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FbWwI63Von5acIMlmaFIEGXr3L4=
Content-Language: en-GB
In-Reply-To: <vg2oho$33mjv$2@dont-email.me>
Bytes: 2208

On 2024-11-01 10:28, Ruvim wrote:
> Such a syntax is used in SP-Forth/4 since 2001, in the form <voc>::<word> or 
> <voc1>::<voc2>::<word>
> 
> Where <voc> is a word that returns wid, or a word that is created with 
> `vocabulary`.
> 
> This syntax in SP-Forth probably came after C++ "::" operator, introduced in 
> 1998.  The same operator was in C# from its initial release in 2000.
 >
> The dot "." operator for accessing nested packages in Java was introduced in 1995.
> 
> In Forth, a dot is often used as part of plain names, so it was less suitable as 
> a namespace separator.

Yep.  Bad idea to use dot.

Never liked `::`, found it visually distasteful.

Dare I suggest C's `->` which trumps others by decades.

Or simply create a new one like `:>` or  `~` (oh I'll be stoned for this one). 
I would prefer a single character, but there are so few good choices.

-- 
Anthony C Howe
achowe@snert.com                                   BarricadeMX & Milters
http://nanozen.snert.com/                          http://software.snert.com/