Liste des Groupes | Revenir à cl forth |
Ruvim <ruvim.pinka@gmail.com> writes:[...]On 2024-10-04 22:04, Anton Ertl wrote:
Yes. This becomes even more important for libraries and standard words, because you cannot change code in programs that use the library.That's a very Forthy way of looking at it. The usual argument forThe lack of flexibility of standard TO has not deterred them from>
using that.
This statement contains the logical fallacy "Survivorship bias" [1].
>
There are different use cases. In some use cases the discussed
flexibility is not needed, in other — it is needed.
getters and setters is that that flexibility might be needed in the
future, so you don't use a mechanism like variables or values that
does not provide this flexibility, in order to avoid having to change
all the places where the variable or value is used, and only have to
change the place where the getter and setter is defined.
In thisI wonder how many there are :))
scenario value-flavoured words must not be used unless the flexibility
for TO is provided (i.e., they must not be used in standard Forth).
But yes, there are probably not many people with that mindset in the
Forth community.
Forth-94 seems to have had some of that, though,Me too. Same for "STATE".
with words like GET-CURRENT and SET-CURRENT instead of a (user)
variable CURRENT that had existing practice at the time. I wish they
had defined GET-BASE and SET-BASE instead of BASE.
Les messages affichés proviennent d'usenet.