Open ruv opened 4 years ago
Regarding the points you described on the wiki page, I agree with most of them. Some minor comments:
My comments are only opinions, of course. No hard truth about them.
By the way, @ruv's ideas plus my comments are mostly implemented in nop.
Some forth systems don't pass the mentioned testcase: echo "2 3 + . " | forth
.
OTOH, pipe in STDIN means batch mode, so a Forth system should be quiet. It is useful for scripting. Sometimes the output should be fully controlled by a script.
The idea is to have not a minimal API, but to have a conventional API.
It it common for the script engines to accept a file in the command line, and even several files.
Also, "help" and "version" options are well known and wide supported (it certainly does not exclude words like help
and version
).
Regarding nop system — it could be more useful if it would be closer to the standard Forth.
I suggest to figure out some conventional requirements to the desktop Forth systems. See the initial version at wiki. Please, share you ideas.