Sujet : Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 10. Sep 2024, 03:21:30
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <66dfad2a$1@news.ausics.net>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 10/09/2024 7:16 am, minforth wrote:
...
Since such algorithms/tasks are mostly formulated mathematically or
logically, an almost 1:1 translation of such formulations by using
locals
is straightforward and less error prone. Use descriptive names and the
code
becomes quasi commented simultaneously.
Mathematical formulations are typically expressed algebraically. Forth
is stack-based and uses RPN. It's a different world. To use the latter
effectively requires a different mindset. Do you really formulate or
sketch out tasks algebraically? For me it ended when I stopped using
BASIC.