16.6.1.1595 FORTH-WORDLIST SEARCH
Return wid, the identifier of the word list that includes all standard words provided by the implementation. This word list is initially the compilation word list and is part of the initial search order.
Testing:
ContributeContributions
LSchmidt
[229] inconsistent namingRequest for clarification2022-03-18 14:04:40
I'm not really happy with naming FORTH-WORDLIST
FORTH-WORDLIST
, for the reason that naming it that way sets the pattern for naming other words which are meant to produce wids according the same pattern: <name-of-wordlist>-WORDLIST.
Following and applying that pattern would then suggest that SEARCH-WORDLIST
produces the wid of the wordlist SEARCH, which is clearly not the case.
It is therefore my opinion that either SEARCH-WORDLIST
or FORTH-WORDLIST
is an inconsistent misnomer, with the name FORTH-WORDLIST
introducing a resemblance of hungarian notation (making the "type" of the underlying object part of the name). To distinguish FORTH-WORDLIST
(producing the wid) from FORTH
(using wid), I think that FORTHID
or FORTH-ID
(that it's a wordlist id, I assume user knows, and so the "w" for wordlist doesn't really need to suffer hungarisation) may be a better choice, also in view of naming other words intended to produce wordlist ids.