Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 27 |
Nodes: | 6 (0 / 6) |
Uptime: | 45:50:40 |
Calls: | 632 |
Calls today: | 3 |
Files: | 1,187 |
D/L today: |
24 files (29,813K bytes) |
Messages: | 176,168 |
I have updated my proposal on the `latest-name` and `latest-name-in`
words. Essentially, I have added a lot of rationale and one very
portable reference implementation.
See at <https://forth-standard.org/proposals/new-words-latest-name-and-latest-name-in?hideDiff#reply-1573>
Please let me know if you have any questions or suggestions on this
regard. Note that this webpage contains previous versions of the
proposal above the specified anchor.
See also a discussion on the same subject in 2023 at <https://groups.google.com/g/comp.lang.forth/c/fjgWq-roR3M/m/QQ4d3VinAgAJ>
--
Ruvim
On 05-10-2025 13:25, Ruvim wrote:
I'd be happy to support LATEST-NAME as a preprocessor macro (although I doubt 4tH's LATEST is compatible), but I won't be introducing it in the native 4tH compiler for the following reasons:
Moore:
"There are diverging programming styles in the Forth community. One uses hyphenated words that express in English what the word is doing. You
string these big long words together and you get something that is quite readable. But I immediately suspect that the programmer didnrCOt think out the words carefully enough, that the hyphen should be broken and the
words defined separately. That isnrCOt always possible, and it isnrCOt always advantageous. But I suspect a hyphenated word of mixing two concepts."
Which is part of TF, also tip 5.19 *"Favor short words"*
.. and LATEST-WORD is not short.
We had a good word there, LATEST, which I guess does at least 90%
of the work proposed, so why not take that one?
It is a tendency I see within Forth-200x to take longer and longer
words, just to avoid any collisions with existing words. And I don't
think that's a smart move.