Sujet : Re: "Back & Forth" - Local variables
De : sjack (at) *nospam* dontemail.me (sjack)
Groupes : comp.lang.forthDate : 14. Mar 2025, 16:55:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vr1ji2$1jtc3$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : tin/2.6.4-20240224 ("Banff") (Linux/6.8.0-55-generic (x86_64))
albert@spenarnc.xs4all.nl wrote:
Because it is a design mistake of a language to give the same name to
two different functionalities, merely because they happen to have the
same behaviour in a certain implementation.
A given behavior may play different roles in different contexts. Giving
names to a behavior that fit the roles it plays provides clarity of
intent. For example, COUNT is associated with conversion of a
counted-string. However, its behavior is also well suited in running
along any string, or portion of string, in memory and fetching its
characters. In this latter role using the name C@++ would not give the
false impression of a counted-string being in play.
-- me